summaryrefslogtreecommitdiffstats
path: root/pokemod/CoinList.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-01-23 04:50:24 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-01-23 04:50:24 +0000
commitef250617e8163c535931be045aa4e9d59163ace7 (patch)
tree5b76323ec66a63c3fca589b088b310c3fdaba2b7 /pokemod/CoinList.cpp
parentefa80ce427e40070e36e5ab86d2f6dbf4ad50648 (diff)
[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 git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@40 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/CoinList.cpp')
-rw-r--r--pokemod/CoinList.cpp14
1 files changed, 7 insertions, 7 deletions
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);
}