aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lldb/source/Utility/StringLexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/lldb/source/Utility/StringLexer.cpp')
-rw-r--r--contrib/llvm-project/lldb/source/Utility/StringLexer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm-project/lldb/source/Utility/StringLexer.cpp b/contrib/llvm-project/lldb/source/Utility/StringLexer.cpp
index 947472a014eb..26185517e275 100644
--- a/contrib/llvm-project/lldb/source/Utility/StringLexer.cpp
+++ b/contrib/llvm-project/lldb/source/Utility/StringLexer.cpp
@@ -10,10 +10,11 @@
#include <algorithm>
#include <assert.h>
+#include <utility>
using namespace lldb_private;
-StringLexer::StringLexer(std::string s) : m_data(s), m_position(0) {}
+StringLexer::StringLexer(std::string s) : m_data(std::move(s)), m_position(0) {}
StringLexer::Character StringLexer::Peek() { return m_data[m_position]; }