try to make cppcheck happy

This commit is contained in:
Felix Hammer
2015-01-14 01:22:10 +01:00
parent 6dff34a589
commit 54eabb28c8
5 changed files with 19 additions and 4 deletions
+5 -3
View File
@@ -7,9 +7,7 @@
qmlWrapper::qmlWrapper()
{
qDebug("qmlWrapperKonstruktor");
startView myStartView;
myStartView.show();
myStartView = new startView();
}
qmlWrapper::~qmlWrapper()
@@ -17,3 +15,7 @@ qmlWrapper::~qmlWrapper()
}
void qmlWrapper::showStartView()
{
myStartView->show();
}
+6
View File
@@ -1,12 +1,18 @@
#ifndef QMLWRAPPER_H
#define QMLWRAPPER_H
class startView;
class qmlWrapper
{
public:
qmlWrapper();
~qmlWrapper();
void showStartView();
private:
startView *myStartView;
};
#endif // QMLWRAPPER_H
@@ -12,6 +12,11 @@ startView::~startView()
}
startView::startView(const startView&)
{
}
void startView::show()
{
qDebug("show mal bitte");
+1
View File
@@ -7,6 +7,7 @@ class startView
public:
startView();
~startView();
startView(const startView&);
void show();
+2 -1
View File
@@ -37,7 +37,8 @@
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
qmlWrapper *myQml = new qmlWrapper();
qmlWrapper myQml;
myQml.showStartView();
return app.exec();
}