try to make cppcheck happy again

This commit is contained in:
Felix Hammer
2015-01-15 08:19:55 +01:00
parent 8a000bdc2b
commit a78e5b39a3
4 changed files with 8 additions and 5 deletions
+3
View File
@@ -12,7 +12,10 @@ qmlWrapper::qmlWrapper()
qmlWrapper::~qmlWrapper()
{
}
qmlWrapper::qmlWrapper(const qmlWrapper&)
{
}
void qmlWrapper::showStartView()
+1
View File
@@ -8,6 +8,7 @@ class qmlWrapper
public:
qmlWrapper();
~qmlWrapper();
qmlWrapper(const qmlWrapper&);
void showStartView();
+1 -3
View File
@@ -1,10 +1,8 @@
#include <QQmlApplicationEngine>
#include "startview.h"
startView::startView()
{
qDebug("startViewKonstruktor");
myEngine = new QQmlApplicationEngine();
}
startView::~startView()
@@ -20,5 +18,5 @@ startView::startView(const startView&)
void startView::show()
{
qDebug("show mal bitte");
myEngine->load(QUrl(QStringLiteral("qrc:/main.qml")));
myEngine.load(QUrl(QStringLiteral("qrc:/main.qml")));
}
+3 -2
View File
@@ -1,7 +1,8 @@
#ifndef STARTVIEW_H
#define STARTVIEW_H
class QQmlApplicationEngine;
#include <QQmlApplicationEngine>
class startView
{
public:
@@ -12,7 +13,7 @@ public:
void show();
private:
QQmlApplicationEngine *myEngine;
QQmlApplicationEngine myEngine;
};
#endif // STARTVIEW_H