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/libnrtype/FontFactory.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libnrtype') diff --git a/src/libnrtype/FontFactory.h b/src/libnrtype/FontFactory.h index eb1651f27..3dd9e66d7 100644 --- a/src/libnrtype/FontFactory.h +++ b/src/libnrtype/FontFactory.h @@ -11,6 +11,7 @@ #include #include +#include #ifdef HAVE_CONFIG_H # include @@ -63,7 +64,7 @@ public: StyleNames( Glib::ustring name ) : CssName( name ), DisplayName( name ) {}; StyleNames( Glib::ustring cssname, Glib::ustring displayname ) : - CssName( cssname ), DisplayName( displayname ) {}; + CssName(std::move( cssname )), DisplayName(std::move( displayname )) {}; public: Glib::ustring CssName; // Style as Pango/CSS would write it. -- cgit v1.2.3