Mark a non-mutating function as const.

This commit is contained in:
Lipka Boldizsár 2015-07-25 22:43:33 +02:00
parent 1575fce44a
commit 91b49198ff
2 changed files with 2 additions and 2 deletions

View file

@ -104,7 +104,7 @@ void manager::restore_defaults(const std::string &component)
}
}
bool manager::has_options()
bool manager::has_options() const
{
return !widgets_.empty();
}

View file

@ -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 */