VariableExpression#GetVariable(): return by const ref not to unnecessarily malloc()

This commit is contained in:
Alexander A. Klimov 2022-10-18 16:51:58 +02:00
parent 038a5e8ef6
commit dacd6a206d
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ class VariableExpression final : public DebuggableExpression
public: public:
VariableExpression(String variable, std::vector<Expression::Ptr> imports, const DebugInfo& debugInfo = DebugInfo()); VariableExpression(String variable, std::vector<Expression::Ptr> imports, const DebugInfo& debugInfo = DebugInfo());
String GetVariable() const inline const String& GetVariable() const
{ {
return m_Variable; return m_Variable;
} }