From 571f36f1b61d316a2f2ace00fa94ba83ab1ac0a0 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 18 Jun 2018 18:54:54 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-pass-by-value=20?= =?UTF-8?q?pass.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids having to pass variables by reference before copying them when calling a constructor. --- src/trace/trace.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/trace') diff --git a/src/trace/trace.h b/src/trace/trace.h index 9f680752b..e6768cb4e 100644 --- a/src/trace/trace.h +++ b/src/trace/trace.h @@ -17,6 +17,7 @@ #include #include +#include #include class SPImage; @@ -40,11 +41,11 @@ public: /** * */ - TracingEngineResult(const std::string &theStyle, - const std::string &thePathData, + TracingEngineResult(std::string theStyle, + std::string thePathData, long theNodeCount) : - style(theStyle), - pathData(thePathData), + style(std::move(theStyle)), + pathData(std::move(thePathData)), nodeCount(theNodeCount) {} -- cgit v1.2.3