summaryrefslogtreecommitdiffhomepage
path: root/gui/process_detector.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-20 19:07:13 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-24 19:31:24 +0100
commitdeb301619d3d6ade1023d0a2b234a9d948a6dbd0 (patch)
tree5eda7428723e4db6263d88d9c7ed8cf53a05116e /gui/process_detector.cpp
parente202dab212ef8fd284d2745dd66496dcc3a2043e (diff)
gui/process-detector: get rid of "" passed to QString ctor
Diffstat (limited to 'gui/process_detector.cpp')
-rw-r--r--gui/process_detector.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/gui/process_detector.cpp b/gui/process_detector.cpp
index 0ff05f93..8301974c 100644
--- a/gui/process_detector.cpp
+++ b/gui/process_detector.cpp
@@ -174,14 +174,14 @@ void process_detector::remove()
bool process_detector_worker::should_stop()
{
- if (last_exe_name == "")
+ if (last_exe_name == QString())
return false;
proc_detector_settings s;
if (!s.is_enabled())
{
- last_exe_name = "";
+ last_exe_name = QString{};
return false;
}
@@ -190,7 +190,7 @@ bool process_detector_worker::should_stop()
if (exe_list.contains(last_exe_name))
return false;
- last_exe_name = "";
+ last_exe_name = QString{};
return true;
}
@@ -200,7 +200,7 @@ bool process_detector_worker::config_to_start(QString& str)
proc_detector_settings s;
if (!s.is_enabled())
{
- last_exe_name = "";
+ last_exe_name = QString{};
return false;
}
@@ -218,9 +218,9 @@ bool process_detector_worker::config_to_start(QString& str)
{
if (filenames.contains(name))
{
- last_exe_name = name;
str = filenames[name];
- return str != "";
+ last_exe_name = std::move(name);
+ return str != QString{};
}
}