diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2007-06-02 18:12:48 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2007-06-02 18:12:48 +0000 |
| commit | c9afda3ab74614fb36986f96b7972c082f275eca (patch) | |
| tree | 1b7c0b31950597d6ed562d94158dd3f8701496da /pokemod/Author.cpp | |
| parent | f71140fae5218ee9839ffcd4ec83abfded5124f4 (diff) | |
| download | sigen-c9afda3ab74614fb36986f96b7972c082f275eca.tar.gz sigen-c9afda3ab74614fb36986f96b7972c082f275eca.tar.xz sigen-c9afda3ab74614fb36986f96b7972c082f275eca.zip | |
Finished off all PokeMod classes, added move validations, fixed up some GUI, various other fixes
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@18 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Author.cpp')
| -rw-r--r-- | pokemod/Author.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pokemod/Author.cpp b/pokemod/Author.cpp index 8d19d274..fadd0893 100644 --- a/pokemod/Author.cpp +++ b/pokemod/Author.cpp @@ -23,12 +23,12 @@ #include "Author.h"
-PokeGen::PokeMod::Author::Author(const unsigned _id)
+PokeGen::PokeMod::Author::Author(const unsigned _id) :
+ name(""),
+ email(""),
+ role("")
{
LogCtor("Author", id);
- name = "";
- email = "";
- role = "";
id = _id;
}
@@ -107,15 +107,15 @@ void PokeGen::PokeMod::Author::ImportIni(Ini &ini, const unsigned _id) String curName;
if (_id == UINT_MAX)
{
- ini.GetValue("id", id, UINT_MAX);
+ ini.GetValue("id", id);
if (id == UINT_MAX)
LogIdNotFound("Author");
}
else
id = _id;
- ini.GetValue("name", name, "");
- ini.GetValue("email", email, "");
- ini.GetValue("role", role, "");
+ ini.GetValue("name", name);
+ ini.GetValue("email", email);
+ ini.GetValue("role", role);
LogImportOver("Author", id, name);
}
|
