summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-11-18 21:26:23 +0100
committerMontel Laurent <[email protected]>2015-11-18 21:26:23 +0100
commitcec221c3e3f9c840f6563bf1254062f6fbd40f3c (patch)
treeaf0cf4de0f178317735dadefba63d5d8a8a919d0
parent21892e9e6c1fac9484f6dad05dd7b4c266ca4f52 (diff)
Return value
-rw-r--r--pimcommon/src/autocorrection/tests/autocorrection_gui.cpp4
-rw-r--r--pimcommon/src/widgets/tests/customtoolswidgetng_gui.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/pimcommon/src/autocorrection/tests/autocorrection_gui.cpp b/pimcommon/src/autocorrection/tests/autocorrection_gui.cpp
index 570eb45..29ac77c 100644
--- a/pimcommon/src/autocorrection/tests/autocorrection_gui.cpp
+++ b/pimcommon/src/autocorrection/tests/autocorrection_gui.cpp
@@ -166,8 +166,8 @@ int main(int argc, char **argv)
w->resize(800, 600);
w->show();
- app.exec();
+ const int ret = app.exec();
delete w;
- return 0;
+ return ret;
}
diff --git a/pimcommon/src/widgets/tests/customtoolswidgetng_gui.cpp b/pimcommon/src/widgets/tests/customtoolswidgetng_gui.cpp
index cc291a7..949bc91 100644
--- a/pimcommon/src/widgets/tests/customtoolswidgetng_gui.cpp
+++ b/pimcommon/src/widgets/tests/customtoolswidgetng_gui.cpp
@@ -73,8 +73,8 @@ int main(int argc, char **argv)
CustomToolWidgetNgTest *w = new CustomToolWidgetNgTest();
w->resize(800, 200);
w->show();
- app.exec();
+ const int ret = app.exec();
delete w;
- return 0;
+ return ret;
}