diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-24 12:56:24 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-24 12:56:24 -0500 |
| commit | 97fac7d7b30058574dc15d7c18382f104bafd833 (patch) | |
| tree | 2e7f5e612c34c82a70f454069a2e9868ca261b7d /sigmod/MapWildList.cpp | |
| parent | 21a57c920ffd9038053650a403fc6271a0d4e243 (diff) | |
Add using namespace Sigmod and Sigcore to sigmod sources for cleaner code
Diffstat (limited to 'sigmod/MapWildList.cpp')
| -rw-r--r-- | sigmod/MapWildList.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/sigmod/MapWildList.cpp b/sigmod/MapWildList.cpp index 27820147..0d891994 100644 --- a/sigmod/MapWildList.cpp +++ b/sigmod/MapWildList.cpp @@ -26,37 +26,39 @@ // Qt includes #include <QtCore/QSet> -Sigmod::MapWildList::MapWildList(const MapWildList& wildList) : +using namespace Sigmod; + +MapWildList::MapWildList(const MapWildList& wildList) : Object(wildList.parent(), wildList.id()) { *this = wildList; } -Sigmod::MapWildList::MapWildList(const Map* parent, const int id) : +MapWildList::MapWildList(const Map* parent, const int id) : Object(parent, id), m_name("") { } -Sigmod::MapWildList::MapWildList(const MapWildList& wildList, const Map* parent, const int id) : +MapWildList::MapWildList(const MapWildList& wildList, const Map* parent, const int id) : Object(parent, id) { *this = wildList; } -Sigmod::MapWildList::MapWildList(const QDomElement& xml, const Map* parent, const int id) : +MapWildList::MapWildList(const QDomElement& xml, const Map* parent, const int id) : Object(parent, id) { LOAD_ID(); load(xml); } -Sigmod::MapWildList::~MapWildList() +MapWildList::~MapWildList() { clear(); } -void Sigmod::MapWildList::validate() +void MapWildList::validate() { TEST_BEGIN(); if (m_name.isEmpty()) @@ -70,14 +72,14 @@ void Sigmod::MapWildList::validate() TEST_END(); } -void Sigmod::MapWildList::load(const QDomElement& xml) +void MapWildList::load(const QDomElement& xml) { LOAD_BEGIN(); LOAD(name); LOAD_SUB(newEncounter, MapWildListEncounter); } -QDomElement Sigmod::MapWildList::save() const +QDomElement MapWildList::save() const { SAVE_CREATE(); SAVE(name); @@ -93,7 +95,7 @@ CHECK(MapWildList, QString&, name) SUBCLASS(MapWildList, Encounter, encounter, encounters) -Sigmod::MapWildList& Sigmod::MapWildList::operator=(const MapWildList& rhs) +MapWildList& MapWildList::operator=(const MapWildList& rhs) { if (this == &rhs) return *this; @@ -103,7 +105,7 @@ Sigmod::MapWildList& Sigmod::MapWildList::operator=(const MapWildList& rhs) return *this; } -void Sigmod::MapWildList::clear() +void MapWildList::clear() { SUBCLASS_CLEAR(encounters); } |
