[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [umbrello] umbrello: Make code a bit more readable
From:       Ralf Habacker <null () kde ! org>
Date:       2017-10-31 21:17:38
Message-ID: E1e9duk-00073r-79 () code ! kde ! org
[Download RAW message or body]

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 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())


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic