summaryrefslogtreecommitdiffstats
path: root/sigscript/AuthorWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigscript/AuthorWrapper.cpp')
-rw-r--r--sigscript/AuthorWrapper.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/sigscript/AuthorWrapper.cpp b/sigscript/AuthorWrapper.cpp
index 8b23352d..ed0a7c36 100644
--- a/sigscript/AuthorWrapper.cpp
+++ b/sigscript/AuthorWrapper.cpp
@@ -24,7 +24,10 @@
// Sigmod includes
#include <sigmod/Author.h>
-Sigscript::AuthorWrapper* Sigscript::AuthorWrapper::create(const Sigmod::Author* author, GameWrapper* parent)
+using namespace Sigmod;
+using namespace Sigscript;
+
+AuthorWrapper* AuthorWrapper::create(const Author* author, GameWrapper* parent)
{
Signature sig = Signature(parent, Subsignature(author->className(), author->id()));
if (!m_instances.contains(sig))
@@ -32,23 +35,23 @@ Sigscript::AuthorWrapper* Sigscript::AuthorWrapper::create(const Sigmod::Author*
return qobject_cast<AuthorWrapper*>(m_instances[sig]);
}
-Sigscript::AuthorWrapper::AuthorWrapper(const Sigmod::Author* author, GameWrapper* parent) :
+AuthorWrapper::AuthorWrapper(const Author* author, GameWrapper* parent) :
ObjectWrapper(author, parent),
m_author(author)
{
}
-QString Sigscript::AuthorWrapper::name() const
+QString AuthorWrapper::name() const
{
return m_author->name();
}
-QString Sigscript::AuthorWrapper::email() const
+QString AuthorWrapper::email() const
{
return m_author->email();
}
-QString Sigscript::AuthorWrapper::role() const
+QString AuthorWrapper::role() const
{
return m_author->role();
}