summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <[email protected]>2017-10-31 22:10:51 +0100
committerRalf Habacker <[email protected]>2017-10-31 22:15:05 +0100
commitb032b62daec83de6784a9957c627f8dcaa5a8464 (patch)
tree94e674ec926d46833867ffc1d1f451e0d05e92c6
parent63595fabca6cb088869f0a22f2c89efaa492c8e8 (diff)
Make code a bit more readable
-rw-r--r--umbrello/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/umbrello/main.cpp b/umbrello/main.cpp
index f368a7b..15598c9 100644
--- a/umbrello/main.cpp
+++ b/umbrello/main.cpp
@@ -178,6 +178,7 @@ int main(int argc, char *argv[])
options.add("use-folders", ki18n("keep the tree structure used to store the views in the document in the target directory"));
KCmdLineArgs::addCmdLineOptions(options); // Add our own options.
KApplication app;
+ KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
#endif
Q_INIT_RESOURCE(icons);
@@ -188,8 +189,6 @@ int main(int argc, char *argv[])
#if QT_VERSION >= 0x050000
if (args->isSet(EXPORT_FORMATS)) {
#else
- KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
-
if (args->isSet("export-formats")) {
#endif
foreach(const QString& type, UMLViewImageExporterModel::supportedImageTypes())