summaryrefslogtreecommitdiffstats
path: root/src/text-tag-attributes.h
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/text-tag-attributes.h
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/text-tag-attributes.h')
-rw-r--r--src/text-tag-attributes.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/text-tag-attributes.h b/src/text-tag-attributes.h
index da054518a..3b3ca0568 100644
--- a/src/text-tag-attributes.h
+++ b/src/text-tag-attributes.h
@@ -1,6 +1,7 @@
#ifndef INKSCAPE_TEXT_TAG_ATTRIBUTES_H
#define INKSCAPE_TEXT_TAG_ATTRIBUTES_H
+#include <utility>
#include <vector>
#include <glib.h>
#include "libnrtype/Layout-TNG.h"
@@ -23,8 +24,8 @@ element.
class TextTagAttributes {
public:
TextTagAttributes() = default;
- TextTagAttributes(Inkscape::Text::Layout::OptionalTextTagAttrs const &attrs)
- : attributes(attrs) {}
+ TextTagAttributes(Inkscape::Text::Layout::OptionalTextTagAttrs attrs)
+ : attributes(std::move(attrs)) {}
/// Fill in all the fields of #attributes from the given node.
void readFrom(Inkscape::XML::Node const *node);