From 97fac7d7b30058574dc15d7c18382f104bafd833 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 24 Feb 2009 12:56:24 -0500 Subject: Add using namespace Sigmod and Sigcore to sigmod sources for cleaner code --- sigmod/MapWildList.cpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'sigmod/MapWildList.cpp') 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 -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); } -- cgit