Commit 9bb5283b authored by Ralf Habacker's avatar Ralf Habacker

Remove obsolate global static variable umlApp in class TestBase.

There is no need to store an additional pointer for UMLApp instance.
parent dc5beef1
......@@ -39,8 +39,6 @@
#include <QTemporaryDir>
#endif
static UMLApp *umlApp = 0;
TestBase::TestBase(QObject *parent)
: QObject(parent)
{
......@@ -49,12 +47,12 @@ TestBase::TestBase(QObject *parent)
void TestBase::initTestCase()
{
QWidget *w = new QWidget;
umlApp = new UMLApp(w);
new UMLApp(w);
}
void TestBase::cleanupTestCase()
{
delete umlApp;
delete UMLApp::app();
}
void TestCodeGeneratorBase::initTestCase()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment