From 18e3d6dbca1250cdc36119c3da8328338fe9f1f6 Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Fri, 30 Nov 2018 13:34:44 +0100 Subject: liblangutil: small refactors wrt. API cleanups Especially also remove SourceLocation ctor's that the compiler can default-implement. --- liblangutil/Scanner.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'liblangutil/Scanner.h') 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 _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() noexcept { return m_source; } -- cgit