diff options
author | Orgad Shaneh <[email protected]> | 2013-07-17 00:01:45 +0300 |
---|---|---|
committer | Orgad Shaneh <[email protected]> | 2013-07-17 11:11:25 +0200 |
commit | ad9e7ccab6e8476c0cb478ea2e4f13354dc21635 (patch) | |
tree | 9c67e7cfec7e7d0603e9279de9227cdef1cac530 /src/plugins/debugger/debuggerplugin.cpp | |
parent | c67f7f63497b321f42ee0081f29b7e3804023a10 (diff) |
Fix coding style for else statements
Change-Id: I1309db70e98d678e150388c76ce665e988fdf081
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 2de263e2027..25ef0454f55 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1405,11 +1405,11 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it, QString key = arg.section(QLatin1Char('='), 0, 0); QString val = arg.section(QLatin1Char('='), 1, 1); if (val.isEmpty()) { - if (key.isEmpty()) + if (key.isEmpty()) { continue; - else if (sp.executable.isEmpty()) + } else if (sp.executable.isEmpty()) { sp.executable = key; - else { + } else { *errorMessage = DebuggerPlugin::tr("Only one executable allowed!"); return false; } @@ -1419,15 +1419,13 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it, sp.remoteChannel = val; sp.displayName = tr("Remote: \"%1\"").arg(sp.remoteChannel); sp.startMessage = tr("Attaching to remote server %1.").arg(sp.remoteChannel); - } - else if (key == QLatin1String("core")) { + } else if (key == QLatin1String("core")) { sp.startMode = AttachCore; sp.closeMode = DetachAtClose; sp.coreFile = val; sp.displayName = tr("Core file \"%1\"").arg(sp.coreFile); sp.startMessage = tr("Attaching to core file %1.").arg(sp.coreFile); - } - else if (key == QLatin1String("kit")) { + } else if (key == QLatin1String("kit")) { kit = KitManager::instance()->find(Id::fromString(val)); } } |