summaryrefslogtreecommitdiffstats
path: root/pokemod/Store.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/Store.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/Store.cpp')
-rw-r--r--pokemod/Store.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/pokemod/Store.cpp b/pokemod/Store.cpp
index 1b5333d4..0559ba25 100644
--- a/pokemod/Store.cpp
+++ b/pokemod/Store.cpp
@@ -27,19 +27,19 @@
#include "Store.h"
Store::Store(const Pokemod& par, const unsigned _id) :
- Object(par, _id),
+ Object("Store", par, _id),
name("")
{
}
Store::Store(const Pokemod& par, const Store& s, const unsigned _id) :
- Object(par, _id)
+ Object("Store", par, _id)
{
*this = s;
}
Store::Store(const Pokemod& par, const QString& fname, const unsigned _id) :
- Object(par, _id)
+ Object("Store", par, _id)
{
load(fname, _id);
}
@@ -118,19 +118,19 @@ void Store::setName(const QString& n)
void Store::setItem(const unsigned itm, const bool it) throw(Exception)
{
if (pokemod.getItemIndex(itm) == UINT_MAX)
- throw(BoundsException("Store", "item"));
+ throw(BoundsException(className, "item"));
for (QMutableListIterator<unsigned> i(items); i.hasNext(); )
{
if (i.next() == itm)
{
if (it)
- throw(Exception("Store", "item already used"));
+ throw(Exception(className, "item already used"));
else
i.remove();
}
}
if (!it)
- throw(Exception("Store", "item wasn\'t being used anyway"));
+ throw(Exception(className, "item wasn\'t being used anyway"));
items.append(itm);
}