mirror of https://github.com/Icinga/icinga2.git
VariableExpression#GetVariable(): return by const ref not to unnecessarily malloc()
This commit is contained in:
parent
038a5e8ef6
commit
dacd6a206d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue