summaryrefslogtreecommitdiffstats
path: root/testfiles/src/attributes-test.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2019-01-02 10:56:56 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2019-01-02 10:56:56 +0000
commitc9e6cec9f909db85df80688c7a5b2a0c97e56c3f (patch)
treedfe5beb9f147998c235386b3cf09c2d598d33067 /testfiles/src/attributes-test.cpp
parentprotect includes in c file (diff)
downloadinkscape-c9e6cec9f909db85df80688c7a5b2a0c97e56c3f.tar.gz
inkscape-c9e6cec9f909db85df80688c7a5b2a0c97e56c3f.zip
run clang tidy modernize pass
Diffstat (limited to 'testfiles/src/attributes-test.cpp')
-rw-r--r--testfiles/src/attributes-test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/testfiles/src/attributes-test.cpp b/testfiles/src/attributes-test.cpp
index ae933611d..ce397b9bb 100644
--- a/testfiles/src/attributes-test.cpp
+++ b/testfiles/src/attributes-test.cpp
@@ -12,6 +12,7 @@
*/
#include <string>
+#include <utility>
#include <vector>
#include "gtest/gtest.h"
@@ -25,8 +26,8 @@ static const unsigned int FIRST_VALID_ID = 1;
class AttributeInfo
{
public:
- AttributeInfo(std::string const &attr, bool supported) :
- attr(attr),
+ AttributeInfo(std::string attr, bool supported) :
+ attr(std::move(attr)),
supported(supported)
{
}