diff options
Diffstat (limited to 'src/moshortcut.cpp')
| -rw-r--r-- | src/moshortcut.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/moshortcut.cpp b/src/moshortcut.cpp index 0f5ae74e..76caf0f9 100644 --- a/src/moshortcut.cpp +++ b/src/moshortcut.cpp @@ -1,22 +1,20 @@ #include "moshortcut.h" MOShortcut::MOShortcut(const QString& link) - : m_valid(link.startsWith("moshortcut://")) - , m_hasInstance(false) - , m_hasExecutable(false) + : m_valid(link.startsWith("moshortcut://")), m_hasInstance(false), + m_hasExecutable(false) { if (m_valid) { int start = (int)strlen("moshortcut://"); - int sep = link.indexOf(':', start); + int sep = link.indexOf(':', start); if (sep >= 0) { m_hasInstance = true; - m_instance = link.mid(start, sep - start); - m_executable = link.mid(sep + 1); - } - else + m_instance = link.mid(start, sep - start); + m_executable = link.mid(sep + 1); + } else m_executable = link.mid(start); - if(!(m_executable=="")) - m_hasExecutable=true; + if (!(m_executable == "")) + m_hasExecutable = true; } } |
