ApplyRule#GetFKVar(): return by const ref

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

View File

@ -37,11 +37,6 @@ String ApplyRule::GetPackage() const
return m_Package;
}
String ApplyRule::GetFKVar() const
{
return m_FKVar;
}
String ApplyRule::GetFVVar() const
{
return m_FVVar;

View File

@ -55,7 +55,12 @@ public:
Expression::Ptr GetExpression() const;
Expression::Ptr GetFilter() const;
String GetPackage() const;
String GetFKVar() const;
inline const String& GetFKVar() const noexcept
{
return m_FKVar;
}
String GetFVVar() const;
Expression::Ptr GetFTerm() const;
bool GetIgnoreOnError() const;