ApplyRule#GetFVVar(): return by const ref

to avoid malloc().
This commit is contained in:
Alexander A. Klimov 2022-11-08 12:48:13 +01:00
parent 738662338f
commit e97a5d59e0
2 changed files with 5 additions and 6 deletions

View File

@ -37,11 +37,6 @@ String ApplyRule::GetPackage() const
return m_Package;
}
String ApplyRule::GetFVVar() const
{
return m_FVVar;
}
Expression::Ptr ApplyRule::GetFTerm() const
{
return m_FTerm;

View File

@ -61,7 +61,11 @@ public:
return m_FKVar;
}
String GetFVVar() const;
inline const String& GetFVVar() const noexcept
{
return m_FVVar;
}
Expression::Ptr GetFTerm() const;
bool GetIgnoreOnError() const;
DebugInfo GetDebugInfo() const;