From dde935e48d44ca1b2b8ce993ae5bc187a8ca30fd Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 24 Feb 2009 15:53:15 -0500 Subject: Fixed sigmod tests to also use namespace Sigmod --- sigmod/test/TestSigmodObject.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'sigmod/test/TestSigmodObject.cpp') diff --git a/sigmod/test/TestSigmodObject.cpp b/sigmod/test/TestSigmodObject.cpp index 07bc1500..600d70b5 100644 --- a/sigmod/test/TestSigmodObject.cpp +++ b/sigmod/test/TestSigmodObject.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2008 Ben Boeckel + * Copyright 2008-2009 Ben Boeckel * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,16 +19,18 @@ #include "TestSigmodObject.h" // Sigmod includes -#include "../Sigmod.h" +#include "../Game.h" -void TestSigmodObject::makeConnections(Sigmod::Object* object) +using namespace Sigmod; + +void TestSigmodObject::makeConnections(Object* object) { connect(object, SIGNAL(warning(QString)), this, SLOT(warning(QString))); connect(object, SIGNAL(error(QString)), this, SLOT(error(QString))); connect(object, SIGNAL(changed()), this, SLOT(changed())); } -void TestSigmodObject::closeConnections(Sigmod::Object* object) +void TestSigmodObject::closeConnections(Object* object) { disconnect(object, 0, this, 0); } @@ -50,12 +52,12 @@ void TestSigmodObject::changed() void TestSigmodObject::initTestCase() { - m_sigmod = new Sigmod::Sigmod; + m_game = new Game; } void TestSigmodObject::cleanupTestCase() { - delete m_sigmod; + delete m_game; } void TestSigmodObject::init() -- cgit