diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-08-28 13:54:12 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-08-28 13:54:12 +0100 |
| commit | ac78cfa11c12cd16b9370d029308cd96b539c37c (patch) | |
| tree | 18e5f3f0524509af5246a9fd5ad92b70d71ff89e /src/command_manager.cc | |
| parent | 1249df9c764d798970b2ae27201681ba359a3c38 (diff) | |
Add missing std::move, avoid a needless string copy
Diffstat (limited to 'src/command_manager.cc')
| -rw-r--r-- | src/command_manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command_manager.cc b/src/command_manager.cc index b0c14a7c..d6b56bc7 100644 --- a/src/command_manager.cc +++ b/src/command_manager.cc @@ -58,7 +58,7 @@ struct Token Token() : m_type(Type::Raw) {} Token(Type type, ByteCount b, ByteCount e, CharCoord coord, String str = "") - : m_type(type), m_begin(b), m_end(e), m_coord(coord), m_content(str) {} + : m_type(type), m_begin(b), m_end(e), m_coord(coord), m_content(std::move(str)) {} Type type() const { return m_type; } ByteCount begin() const { return m_begin; } |
