summaryrefslogtreecommitdiff
path: root/libadhocutil/lexer.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-01-17 19:35:11 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-12 21:10:48 +0000
commit854abea18ca1a46c69b2eed1698839db36b5deb7 (patch)
tree47d4d9bccc3b928bde2c549e65ff066833bba580 /libadhocutil/lexer.cpp
parentEnable some clang-tidy checks and fix up accordingly (diff)
downloadlibadhocutil-854abea18ca1a46c69b2eed1698839db36b5deb7.tar.bz2
libadhocutil-854abea18ca1a46c69b2eed1698839db36b5deb7.tar.xz
libadhocutil-854abea18ca1a46c69b2eed1698839db36b5deb7.zip
More clang-tidy WIP
Diffstat (limited to 'libadhocutil/lexer.cpp')
-rw-r--r--libadhocutil/lexer.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/libadhocutil/lexer.cpp b/libadhocutil/lexer.cpp
index 7c25688..6c6505f 100644
--- a/libadhocutil/lexer.cpp
+++ b/libadhocutil/lexer.cpp
@@ -4,11 +4,9 @@
namespace AdHoc {
const Lexer::State Lexer::InitialState = "";
- Lexer::Lexer()
- {
- }
+ Lexer::Lexer() = default;
- Lexer::Lexer(const Rules & r) : rules(r)
+ Lexer::Lexer(const Rules r) : rules(std::move(r))
{
}