diff options
author | Christian Parpart <christian@ethereum.org> | 2018-11-30 20:34:44 +0800 |
---|---|---|
committer | Christian Parpart <christian@ethereum.org> | 2018-12-01 00:10:39 +0800 |
commit | 18e3d6dbca1250cdc36119c3da8328338fe9f1f6 (patch) | |
tree | 95618af47472cdcda26132e43f87d7ea1e91c6c4 /liblangutil/Scanner.h | |
parent | 435f7b3b72157e884344adbc7b62033bd08bb51c (diff) | |
download | dexon-solidity-18e3d6dbca1250cdc36119c3da8328338fe9f1f6.tar.gz dexon-solidity-18e3d6dbca1250cdc36119c3da8328338fe9f1f6.tar.zst dexon-solidity-18e3d6dbca1250cdc36119c3da8328338fe9f1f6.zip |
liblangutil: small refactors wrt. API cleanups
Especially also remove SourceLocation ctor's that the compiler can default-implement.
Diffstat (limited to 'liblangutil/Scanner.h')
-rw-r--r-- | liblangutil/Scanner.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/liblangutil/Scanner.h b/liblangutil/Scanner.h index a1185369..72d0072f 100644 --- a/liblangutil/Scanner.h +++ b/liblangutil/Scanner.h @@ -93,7 +93,7 @@ public: explicit Scanner(std::shared_ptr<CharStream> _source) { reset(std::move(_source)); } explicit Scanner(CharStream _source = CharStream()) { reset(std::move(_source)); } - std::string source() const { return m_source->source(); } + std::string const& source() const noexcept { return m_source->source(); } std::shared_ptr<CharStream> charStream() noexcept { return m_source; } |