aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/rulesevaluationcontext.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/rulesevaluationcontext.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/rulesevaluationcontext.cpp')
-rw-r--r--src/lib/corelib/buildgraph/rulesevaluationcontext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/buildgraph/rulesevaluationcontext.cpp b/src/lib/corelib/buildgraph/rulesevaluationcontext.cpp
index c81e40c4f..6ae230329 100644
--- a/src/lib/corelib/buildgraph/rulesevaluationcontext.cpp
+++ b/src/lib/corelib/buildgraph/rulesevaluationcontext.cpp
@@ -53,8 +53,8 @@
namespace qbs {
namespace Internal {
-RulesEvaluationContext::RulesEvaluationContext(const Logger &logger)
- : m_logger(logger),
+RulesEvaluationContext::RulesEvaluationContext(Logger logger)
+ : m_logger(std::move(logger)),
m_engine(ScriptEngine::create(m_logger, EvalContext::RuleExecution)),
m_observer(nullptr),
m_initScopeCalls(0)