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/Store.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pokemod/Store.cpp') 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 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); } -- cgit