summaryrefslogtreecommitdiffstats
path: root/pokemod/Ini.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2007-05-26 13:36:39 +0000
committerBen Boeckel <MathStuf@gmail.com>2007-05-26 13:36:39 +0000
commitdc9682d704118840457aa3434711eba6e003eafc (patch)
tree40ccccb7c4a220b656ec92d61277a44380cf30bd /pokemod/Ini.cpp
parent75b7d5c767428f7061365a186cb17a22de4112cc (diff)
downloadsigen-dc9682d704118840457aa3434711eba6e003eafc.tar.gz
sigen-dc9682d704118840457aa3434711eba6e003eafc.tar.xz
sigen-dc9682d704118840457aa3434711eba6e003eafc.zip
const arguments where possible, EggGroup, Move beginnings
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@15 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Ini.cpp')
-rw-r--r--pokemod/Ini.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/pokemod/Ini.cpp b/pokemod/Ini.cpp
index 4b3d9eb6..3a5d0c88 100644
--- a/pokemod/Ini.cpp
+++ b/pokemod/Ini.cpp
@@ -82,7 +82,7 @@ PokeGen::PokeMod::String PokeGen::PokeMod::Ini::GetName() const
return name;
}
-void PokeGen::PokeMod::Ini::GetValue(const String &field, int &val, int def)
+void PokeGen::PokeMod::Ini::GetValue(const String &field, int &val, const int def)
{
if (!fields.count(field))
{
@@ -95,7 +95,7 @@ void PokeGen::PokeMod::Ini::GetValue(const String &field, int &val, int def)
val = ((temp < INT_MIN) || (INT_MAX < temp) || *end) ? def : temp;
}
-void PokeGen::PokeMod::Ini::GetValue(const String &field, unsigned &val, unsigned def)
+void PokeGen::PokeMod::Ini::GetValue(const String &field, unsigned &val, const unsigned def)
{
if (!fields.count(field))
{
@@ -118,7 +118,7 @@ void PokeGen::PokeMod::Ini::GetValue(const String &field, String &val, const Str
val = fields[field];
}
-void PokeGen::PokeMod::Ini::GetValue(const String &field, bool &val, bool def)
+void PokeGen::PokeMod::Ini::GetValue(const String &field, bool &val, const bool def)
{
if (!fields.count(field))
{
@@ -133,7 +133,7 @@ void PokeGen::PokeMod::Ini::GetValue(const String &field, bool &val, bool def)
val = def;
}
-void PokeGen::PokeMod::Ini::GetValue(const String &field, double &val, double def)
+void PokeGen::PokeMod::Ini::GetValue(const String &field, double &val, const double def)
{
if (!fields.count(field))
{