Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApplyRule#GetF*Var(): return by const ref #9572

Merged
merged 2 commits into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions lib/config/applyrule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
13 changes: 11 additions & 2 deletions lib/config/applyrule.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,17 @@ class ApplyRule : public SharedObject
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;
Expand Down