diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2007-05-26 13:36:39 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2007-05-26 13:36:39 +0000 |
| commit | dc9682d704118840457aa3434711eba6e003eafc (patch) | |
| tree | 40ccccb7c4a220b656ec92d61277a44380cf30bd /pokemod/PokemonNature.cpp | |
| parent | 75b7d5c767428f7061365a186cb17a22de4112cc (diff) | |
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/PokemonNature.cpp')
| -rw-r--r-- | pokemod/PokemonNature.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pokemod/PokemonNature.cpp b/pokemod/PokemonNature.cpp index ead7cd2f..2e5c6543 100644 --- a/pokemod/PokemonNature.cpp +++ b/pokemod/PokemonNature.cpp @@ -25,7 +25,7 @@ extern PokeGen::PokeMod::Pokemod curPokeMod;
-PokeGen::PokeMod::PokemonNature::PokemonNature(unsigned _id)
+PokeGen::PokeMod::PokemonNature::PokemonNature(const unsigned _id)
{
LogCtor("PokemonNature", _id);
nature = -1;
@@ -33,7 +33,7 @@ PokeGen::PokeMod::PokemonNature::PokemonNature(unsigned _id) id = _id;
}
-PokeGen::PokeMod::PokemonNature::PokemonNature(Ini &ini, unsigned _id)
+PokeGen::PokeMod::PokemonNature::PokemonNature(Ini &ini, const unsigned _id)
{
LogCtorIni("PokemonNature", _id);
ImportIni(ini, _id);
@@ -84,7 +84,7 @@ void PokeGen::PokeMod::PokemonNature::Validate(const wxListBox &output) }
#endif
-void PokeGen::PokeMod::PokemonNature::ImportIni(Ini &ini, unsigned _id)
+void PokeGen::PokeMod::PokemonNature::ImportIni(Ini &ini, const unsigned _id)
{
LogImportStart("PokemonNature");
if (_id == UINT_MAX)
@@ -113,7 +113,7 @@ void PokeGen::PokeMod::PokemonNature::ExportIni(std::ofstream &fout, const Strin LogExportOver("PokemonNature", id);
}
-void PokeGen::PokeMod::PokemonNature::SetNature(int n)
+void PokeGen::PokeMod::PokemonNature::SetNature(const int n)
{
LogSetVar("PokemonNature", id, "nature", n);
nature = n;
@@ -126,7 +126,7 @@ void PokeGen::PokeMod::PokemonNature::SetNature(const String &n) nature = temp->GetId();
}
-void PokeGen::PokeMod::PokemonNature::SetWeight(unsigned w)
+void PokeGen::PokeMod::PokemonNature::SetWeight(const unsigned w)
{
LogSetVar("PokemonNature", id, "weight", w, GetNatureString());
if (w)
|
