diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-18 16:54:54 +0000 |
|---|---|---|
| committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-18 18:27:11 +0000 |
| commit | 571f36f1b61d316a2f2ace00fa94ba83ab1ac0a0 (patch) | |
| tree | 95696a57d31908e2d5b5853b4c84e3d53c700db1 /src/style-internal.h | |
| parent | Update pdf-parser.cpp (diff) | |
| download | inkscape-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/style-internal.h')
| -rw-r--r-- | src/style-internal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/style-internal.h b/src/style-internal.h index 6ec5038f1..869f862af 100644 --- a/src/style-internal.h +++ b/src/style-internal.h @@ -17,6 +17,7 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ +#include <utility> #include <vector> #include <map> @@ -125,8 +126,8 @@ class SPIBase { public: - SPIBase( Glib::ustring const &name, bool inherits = true ) - : name(name), + SPIBase( Glib::ustring name, bool inherits = true ) + : name(std::move(name)), inherits(inherits), set(false), inherit(false), |
