summaryrefslogtreecommitdiffstats
path: root/sigscript/StoreWrapper.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-02-24 16:33:13 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-02-24 16:33:13 -0500
commitfd874f8a1e413b769245aa61a866bd536a551c3c (patch)
treeaf66c155cc313e9ca777ba8a332c1133a52b3d9c /sigscript/StoreWrapper.cpp
parenteb7d51f42aa1790be6b496a0e1882d6a9646e1c8 (diff)
downloadsigen-fd874f8a1e413b769245aa61a866bd536a551c3c.tar.gz
sigen-fd874f8a1e413b769245aa61a866bd536a551c3c.tar.xz
sigen-fd874f8a1e413b769245aa61a866bd536a551c3c.zip
Fixed up sigscript namespacing in sources
Diffstat (limited to 'sigscript/StoreWrapper.cpp')
-rw-r--r--sigscript/StoreWrapper.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/sigscript/StoreWrapper.cpp b/sigscript/StoreWrapper.cpp
index 6d39513e..c5c28bd5 100644
--- a/sigscript/StoreWrapper.cpp
+++ b/sigscript/StoreWrapper.cpp
@@ -24,7 +24,10 @@
// Sigmod includes
#include <sigmod/Store.h>
-Sigscript::StoreWrapper* Sigscript::StoreWrapper::create(const Sigmod::Store* store, GameWrapper* parent)
+using namespace Sigmod;
+using namespace Sigscript;
+
+StoreWrapper* StoreWrapper::create(const Store* store, GameWrapper* parent)
{
Signature sig = Signature(parent, Subsignature(store->className(), store->id()));
if (!m_instances.contains(sig))
@@ -32,18 +35,18 @@ Sigscript::StoreWrapper* Sigscript::StoreWrapper::create(const Sigmod::Store* st
return qobject_cast<StoreWrapper*>(m_instances[sig]);
}
-Sigscript::StoreWrapper::StoreWrapper(const Sigmod::Store* store, GameWrapper* parent) :
+StoreWrapper::StoreWrapper(const Store* store, GameWrapper* parent) :
ObjectWrapper(store, parent),
m_store(store)
{
}
-QString Sigscript::StoreWrapper::name() const
+QString StoreWrapper::name() const
{
return m_store->name();
}
-QList<Sigscript::ItemWrapper*> Sigscript::StoreWrapper::items()
+QList<ItemWrapper*> StoreWrapper::items()
{
QList<int> itemIds = m_store->item();
QList<ItemWrapper*> items;