Mark a non-mutating function as const.
This commit is contained in:
parent
1575fce44a
commit
91b49198ff
2 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ void manager::restore_defaults(const std::string &component)
|
|||
}
|
||||
}
|
||||
|
||||
bool manager::has_options()
|
||||
bool manager::has_options() const
|
||||
{
|
||||
return !widgets_.empty();
|
||||
}
|
||||
|
|
|
@ -222,7 +222,7 @@ public:
|
|||
|
||||
void restore_defaults(const std::string &component);
|
||||
|
||||
bool has_options();
|
||||
bool has_options() const;
|
||||
private:
|
||||
|
||||
/** Stores needed info about each element and their configuration options */
|
||||
|
|
Loading…
Add table
Reference in a new issue