Merge pull request #9572 from Icinga/ApplyRule-getters

ApplyRule#GetF*Var(): return by const ref
This commit is contained in:
Julian Brost 2022-11-16 13:00:59 +01:00 committed by GitHub
commit e713eb5c1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 12 deletions

View File

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

View File

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