summaryrefslogtreecommitdiffstats
path: root/src/widgets/ege-paint-def.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/ege-paint-def.cpp')
-rw-r--r--src/widgets/ege-paint-def.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/widgets/ege-paint-def.cpp b/src/widgets/ege-paint-def.cpp
index 8ed6bbfc5..83492329c 100644
--- a/src/widgets/ege-paint-def.cpp
+++ b/src/widgets/ege-paint-def.cpp
@@ -44,6 +44,7 @@
#include <sstream>
#include <cstring>
#include <cstdio>
+#include <utility>
#include <glibmm/i18n.h>
#include <glibmm/stringutils.h>
@@ -93,8 +94,8 @@ PaintDef::PaintDef( ColorType type ) :
}
}
-PaintDef::PaintDef( unsigned int r, unsigned int g, unsigned int b, const std::string& description ) :
- descr(description),
+PaintDef::PaintDef( unsigned int r, unsigned int g, unsigned int b, std::string description ) :
+ descr(std::move(description)),
type(RGB),
r(r),
g(g),