a new try to a happy cppcheck

This commit is contained in:
Felix Hammer
2015-01-15 10:03:47 +01:00
parent a78e5b39a3
commit e617c667e1
2 changed files with 3 additions and 7 deletions
+1 -5
View File
@@ -1,13 +1,9 @@
#include <QtCore>
#include "qmlwrapper.h"
#include "views/startview/startview.h"
qmlWrapper::qmlWrapper()
{
qDebug("qmlWrapperKonstruktor");
myStartView = new startView();
}
qmlWrapper::~qmlWrapper()
@@ -20,5 +16,5 @@ qmlWrapper::qmlWrapper(const qmlWrapper&)
void qmlWrapper::showStartView()
{
myStartView->show();
myStartView.show();
}
+2 -2
View File
@@ -1,7 +1,7 @@
#ifndef QMLWRAPPER_H
#define QMLWRAPPER_H
class startView;
#include "startview/startview.h"
class qmlWrapper
{
@@ -13,7 +13,7 @@ public:
void showStartView();
private:
startView *myStartView;
startView myStartView;
};
#endif // QMLWRAPPER_H