mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 20:49:43 +00:00
Make a member function a const member function.
Issue found by cppcheck.
This commit is contained in:
parent
7badda3692
commit
dd09a963da
@ -133,7 +133,9 @@ void persist_context::set_node(const std::string &name) {
|
||||
active_ = &(root_node_.child(name));
|
||||
namespace_ = name_space(namespace_.namespace_ + "." + name);
|
||||
}
|
||||
std::string persist_context::get_node() {
|
||||
|
||||
std::string persist_context::get_node() const
|
||||
{
|
||||
return namespace_.namespace_;
|
||||
}
|
||||
|
||||
|
@ -183,7 +183,7 @@ public:
|
||||
bool clear_var(std::string &);
|
||||
config get_var(const std::string &) const;
|
||||
bool set_var(const std::string &, const config &);
|
||||
std::string get_node();
|
||||
std::string get_node() const;
|
||||
void set_node(const std::string &);
|
||||
bool valid() const { return valid_; };
|
||||
bool dirty() const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user