summaryrefslogtreecommitdiffstats
path: root/pokemod/CoinList.cpp
diff options
context:
space:
mode:
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);
}