summaryrefslogtreecommitdiffstats
path: root/src/trace
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-18 16:54:54 +0000
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-18 18:27:11 +0000
commit571f36f1b61d316a2f2ace00fa94ba83ab1ac0a0 (patch)
tree95696a57d31908e2d5b5853b4c84e3d53c700db1 /src/trace
parentUpdate pdf-parser.cpp (diff)
downloadinkscape-571f36f1b61d316a2f2ace00fa94ba83ab1ac0a0.tar.gz
inkscape-571f36f1b61d316a2f2ace00fa94ba83ab1ac0a0.zip
Run clang-tidy’s modernize-pass-by-value pass.
This avoids having to pass variables by reference before copying them when calling a constructor.
Diffstat (limited to 'src/trace')
-rw-r--r--src/trace/trace.h9
1 files changed, 5 insertions, 4 deletions
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 <glibmm/refptr.h>
#include <gdkmm/pixbuf.h>
+#include <utility>
#include <vector>
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)
{}