summaryrefslogtreecommitdiff
path: root/include/codemaker/exceptiontree.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/codemaker/exceptiontree.hxx')
-rw-r--r--include/codemaker/exceptiontree.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/codemaker/exceptiontree.hxx b/include/codemaker/exceptiontree.hxx
index e42850c101e5..4d5055f8e589 100644
--- a/include/codemaker/exceptiontree.hxx
+++ b/include/codemaker/exceptiontree.hxx
@@ -24,6 +24,7 @@
#include <rtl/string.hxx>
#include <memory>
+#include <utility>
#include <vector>
class TypeManager;
@@ -37,8 +38,8 @@ struct ExceptionTreeNode {
typedef std::vector< std::unique_ptr<ExceptionTreeNode> > Children;
// Internally used by ExceptionTree:
- ExceptionTreeNode(rtl::OString const & theName):
- name(theName), present(false) {}
+ ExceptionTreeNode(rtl::OString theName):
+ name(std::move(theName)), present(false) {}
// Internally used by ExceptionTree:
~ExceptionTreeNode() { clearChildren(); }