summaryrefslogtreecommitdiff
path: root/src/moshortcut.cpp
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2023-07-09 17:36:03 +0200
committerGitHub <noreply@github.com>2023-07-09 17:36:03 +0200
commitef94aee28464039672b277243a0181ae93550d6c (patch)
tree0575a68af5f154e9d6d0738edbaefb16a11d6f5c /src/moshortcut.cpp
parent7d6cb8528d20e36a4cee822263865ee2f7f32481 (diff)
parent3de050e9c03e553f7ae3f780f6bd080a30ae123e (diff)
Merge pull request #1839 from Holt59/ci/initial-gh-action-for-build
Clang-Format + Github Workflow
Diffstat (limited to 'src/moshortcut.cpp')
-rw-r--r--src/moshortcut.cpp18
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;
}
}