mirror of https://github.com/Icinga/icinga2.git
ApplyRule#GetFKVar(): return by const ref
to avoid malloc().
This commit is contained in:
parent
a6b05059ab
commit
738662338f
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue