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()
{ {
}
qmlWrapper::qmlWrapper(const qmlWrapper&)
{
} }
void qmlWrapper::showStartView() void qmlWrapper::showStartView()
+1
View File
@@ -8,6 +8,7 @@ class qmlWrapper
public: public:
qmlWrapper(); qmlWrapper();
~qmlWrapper(); ~qmlWrapper();
qmlWrapper(const qmlWrapper&);
void showStartView(); void showStartView();
+1 -3
View File
@@ -1,10 +1,8 @@
#include <QQmlApplicationEngine>
#include "startview.h" #include "startview.h"
startView::startView() startView::startView()
{ {
qDebug("startViewKonstruktor"); qDebug("startViewKonstruktor");
myEngine = new QQmlApplicationEngine();
} }
startView::~startView() startView::~startView()
@@ -20,5 +18,5 @@ startView::startView(const startView&)
void startView::show() void startView::show()
{ {
qDebug("show mal bitte"); 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 #ifndef STARTVIEW_H
#define STARTVIEW_H #define STARTVIEW_H
class QQmlApplicationEngine; #include <QQmlApplicationEngine>
class startView class startView
{ {
public: public:
@@ -12,7 +13,7 @@ public:
void show(); void show();
private: private:
QQmlApplicationEngine *myEngine; QQmlApplicationEngine myEngine;
}; };
#endif // STARTVIEW_H #endif // STARTVIEW_H