Git commit b032b62daec83de6784a9957c627f8dcaa5a8464 by Ralf Habacker. Committed on 31/10/2017 at 21:15. Pushed by habacker into branch 'master'. Make code a bit more readable M +1 -2 umbrello/main.cpp https://commits.kde.org/umbrello/b032b62daec83de6784a9957c627f8dcaa5a8464 diff --git a/umbrello/main.cpp b/umbrello/main.cpp index f368a7b80..15598c957 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 stor= e the views in the document in the target directory")); KCmdLineArgs::addCmdLineOptions(options); // Add our own options. KApplication app; + KCmdLineArgs *args =3D KCmdLineArgs::parsedArgs(); #endif Q_INIT_RESOURCE(icons); = @@ -188,8 +189,6 @@ int main(int argc, char *argv[]) #if QT_VERSION >=3D 0x050000 if (args->isSet(EXPORT_FORMATS)) { #else - KCmdLineArgs *args =3D KCmdLineArgs::parsedArgs(); - if (args->isSet("export-formats")) { #endif foreach(const QString& type, UMLViewImageExporterModel::suppor= tedImageTypes())