summaryrefslogtreecommitdiff
path: root/Source/cmPathLabel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmPathLabel.cxx')
-rw-r--r--Source/cmPathLabel.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmPathLabel.cxx b/Source/cmPathLabel.cxx
index 4793206f9..fb8135101 100644
--- a/Source/cmPathLabel.cxx
+++ b/Source/cmPathLabel.cxx
@@ -2,8 +2,10 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmPathLabel.h"
-cmPathLabel::cmPathLabel(const std::string& label)
- : Label(label)
+#include <utility>
+
+cmPathLabel::cmPathLabel(std::string label)
+ : Label(std::move(label))
, Hash(0)
{
// Use a Jenkins one-at-a-time hash with under/over-flow protection