From ef250617e8163c535931be045aa4e9d59163ace7 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 23 Jan 2008 04:50:24 +0000 Subject: [FIX] Grammer in Changelog [FIX] Made pokemod classes contain their names for later ease [ADD] PokéModr main window form [FIX] Ini and Exception includes fixed [FIX] BugCatcher bugs fixed [FIX] .pro files fixed [ADD] PokéModr main GUI almost complete MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@40 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/CoinList.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'pokemod/CoinList.cpp') diff --git a/pokemod/CoinList.cpp b/pokemod/CoinList.cpp index 581f0d6e..5dd0f3df 100644 --- a/pokemod/CoinList.cpp +++ b/pokemod/CoinList.cpp @@ -32,20 +32,20 @@ #include "CoinList.h" CoinList::CoinList(const Pokemod& par, const unsigned _id) : - Object(par, _id), + Object("ClassName", par, _id), name(""), value(0) { } CoinList::CoinList(const Pokemod& par, const CoinList& c, const unsigned _id) : - Object(par, _id) + Object("ClassName", par, _id) { *this = c; } CoinList::CoinList(const Pokemod& par, const QString& fname, const unsigned _id) : - Object(par, _id) + Object("ClassName", par, _id) { load(fname, _id); } @@ -178,7 +178,7 @@ void CoinList::setValue(const unsigned v) throw(Exception) } } } - throw(Exception("CoinList", "no compatable coin cases")); + throw(Exception(className, "no compatable coin cases")); } QString CoinList::getName() const @@ -194,14 +194,14 @@ unsigned CoinList::getValue() const const CoinListObject& CoinList::getItem(const unsigned i) const throw(IndexException) { if (getItemCount() <= i) - throw(IndexException("CoinList")); + throw(IndexException(className)); return items.at(i); } CoinListObject& CoinList::getItem(const unsigned i) throw(IndexException) { if (getItemCount() <= i) - throw(IndexException("CoinList")); + throw(IndexException(className)); return items[i]; } @@ -251,7 +251,7 @@ CoinListObject& CoinList::newItem(const CoinListObject& o) void CoinList::deleteItem(const unsigned i) throw(IndexException) { if (getItemCount() <= i) - throw(IndexException("CoinList")); + throw(IndexException(className)); items.removeAt(i); } -- cgit