summaryrefslogtreecommitdiff
path: root/Tests/Wrapping/qtwrappingmain.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Wrapping/qtwrappingmain.cxx')
-rw-r--r--Tests/Wrapping/qtwrappingmain.cxx20
1 files changed, 9 insertions, 11 deletions
diff --git a/Tests/Wrapping/qtwrappingmain.cxx b/Tests/Wrapping/qtwrappingmain.cxx
index 55c7952bac..37234d900c 100644
--- a/Tests/Wrapping/qtwrappingmain.cxx
+++ b/Tests/Wrapping/qtwrappingmain.cxx
@@ -2,27 +2,25 @@
#include <qapplication.h>
#ifndef _WIN32
-# include <stdio.h>
-# include <stdlib.h>
+#include <stdio.h>
+#include <stdlib.h>
#endif
-int main(int argc, char *argv[])
+int main(int argc, char* argv[])
{
#ifndef _WIN32
const char* display = getenv("DISPLAY");
- if ( display && strlen(display)>0 )
- {
+ if (display && strlen(display) > 0) {
#endif
- QApplication app(argc,argv);
+ QApplication app(argc, argv);
qtwrapping qtw;
app.setMainWidget(&qtw);
#ifndef _WIN32
- }
- else
- {
- printf("Environment variable DISPLAY is not set. I will pretend like the test passed, but you should really set it.\n");
- }
+ } else {
+ printf("Environment variable DISPLAY is not set. I will pretend like the "
+ "test passed, but you should really set it.\n");
+ }
#endif
return 0;