From 09d810dbd9e1d2e0c892d7dd5400294c212965c7 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 18 Oct 2022 16:51:58 +0200 Subject: [PATCH] VariableExpression#GetVariable(): return by const ref not to unnecessarily malloc() --- lib/config/expression.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/expression.hpp b/lib/config/expression.hpp index 26ffb341b..7be667a2b 100644 --- a/lib/config/expression.hpp +++ b/lib/config/expression.hpp @@ -303,7 +303,7 @@ class VariableExpression final : public DebuggableExpression public: VariableExpression(String variable, std::vector imports, const DebugInfo& debugInfo = DebugInfo()); - String GetVariable() const + inline const String& GetVariable() const { return m_Variable; }