summaryrefslogtreecommitdiffstats
path: root/tools/qmlmin/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmlmin/main.cpp')
-rw-r--r--tools/qmlmin/main.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/qmlmin/main.cpp b/tools/qmlmin/main.cpp
index 7a5b8f9457..753479a6e5 100644
--- a/tools/qmlmin/main.cpp
+++ b/tools/qmlmin/main.cpp
@@ -50,6 +50,8 @@
#include <iostream>
#include <cstdlib>
+QT_BEGIN_NAMESPACE
+
//
// QML/JS minifier
//
@@ -483,7 +485,7 @@ static void usage(bool showHelp = false)
}
}
-int main(int argc, char *argv[])
+int runQmlmin(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
@@ -589,3 +591,10 @@ int main(int argc, char *argv[])
return 0;
}
+
+QT_END_NAMESPACE
+
+int main(int argc, char **argv)
+{
+ return QT_PREPEND_NAMESPACE(runQmlmin(argc, argv));
+}