Make a member function a const member function.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2010-01-26 21:56:06 +00:00
parent 5a96b2b331
commit 1d98f5c3bf

View file

@ -171,7 +171,7 @@ public:
editor::EXIT_STATUS start_editor(const std::string& filename = "");
#endif
void start_wesnothd();
const config& game_config(){return game_config_;};
const config& game_config() const { return game_config_; }
private:
game_controller(const game_controller&);