aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/executor.cpp
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2019-02-19 19:37:37 +0100
committerIvan Komissarov <ABBAPOH@gmail.com>2019-03-07 12:39:16 +0000
commit936eee744db9b2fd1b9b66d168d80a113002aad2 (patch)
tree84a4ab7f0f18c7ad9af5e6521012a86a6eef1189 /src/lib/corelib/buildgraph/executor.cpp
parentf3056e49c3b2443c5dd9abf78c46381fdbbbd731 (diff)
Use pass-by-value and move
This fixes -Wmodernize-pass-by-value Change-Id: I85a732867866e43c39c1d77937fbc645433c96bd Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/buildgraph/executor.cpp')
-rw-r--r--src/lib/corelib/buildgraph/executor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/buildgraph/executor.cpp b/src/lib/corelib/buildgraph/executor.cpp
index 444ab568f..aeb199a64 100644
--- a/src/lib/corelib/buildgraph/executor.cpp
+++ b/src/lib/corelib/buildgraph/executor.cpp
@@ -86,10 +86,10 @@ bool Executor::ComparePriority::operator() (const BuildGraphNode *x, const Build
}
-Executor::Executor(const Logger &logger, QObject *parent)
+Executor::Executor(Logger logger, QObject *parent)
: QObject(parent)
, m_productInstaller(nullptr)
- , m_logger(logger)
+ , m_logger(std::move(logger))
, m_progressObserver(nullptr)
, m_state(ExecutorIdle)
, m_cancelationTimer(new QTimer(this))