summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-08-14 09:55:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-08-14 09:55:42 +0200
commit0d4899cc4ad3c77c09fa97dbab99d3e975b0cab3 (patch)
tree73ac8835cc289c821a90a80a939998311d1f927a
parente419da059974933deec16a597f5888ade27d8617 (diff)
reformat
-rwxr-xr-xopentrack-compat/process-list.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/opentrack-compat/process-list.hpp b/opentrack-compat/process-list.hpp
index 7dd206ab..65735740 100755
--- a/opentrack-compat/process-list.hpp
+++ b/opentrack-compat/process-list.hpp
@@ -141,12 +141,12 @@ static QStringList get_all_executable_names()
// note, wine sets argv[0] so no parsing like in OSX case
auto proc = procs[i];
if (proc->cmdline && proc->cmdline[0])
- {
- QString tmp(proc->cmdline[0]);
- const int idx = std::max(tmp.lastIndexOf('\\'), tmp.lastIndexOf('/'));
- tmp = tmp.mid(idx == -1 ? 0 : idx+1);
+ {
+ QString tmp(proc->cmdline[0]);
+ const int idx = std::max(tmp.lastIndexOf('\\'), tmp.lastIndexOf('/'));
+ tmp = tmp.mid(idx == -1 ? 0 : idx+1);
ret.append(tmp);
- }
+ }
freeproc(procs[i]);
}
free(procs);