From deb301619d3d6ade1023d0a2b234a9d948a6dbd0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 20 Dec 2018 19:07:13 +0100 Subject: gui/process-detector: get rid of "" passed to QString ctor --- gui/process_detector.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gui/process_detector.cpp') 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{}; } } -- cgit v1.2.3