mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 20:52:18 +00:00
Make a member function a const member function.
Issue found by cppcheck.
This commit is contained in:
parent
7de7d59782
commit
be405e28a9
@ -165,7 +165,7 @@ public:
|
||||
bool load_game();
|
||||
void set_tutorial();
|
||||
|
||||
std::string jump_to_campaign_id();
|
||||
std::string jump_to_campaign_id() const;
|
||||
bool new_campaign();
|
||||
bool goto_campaign();
|
||||
bool goto_multiplayer();
|
||||
@ -1173,10 +1173,12 @@ bool game_controller::new_campaign()
|
||||
}
|
||||
|
||||
}
|
||||
std::string game_controller::jump_to_campaign_id()
|
||||
|
||||
std::string game_controller::jump_to_campaign_id() const
|
||||
{
|
||||
return jump_to_campaign_.campaign_id_;
|
||||
}
|
||||
|
||||
bool game_controller::goto_campaign()
|
||||
{
|
||||
if(jump_to_campaign_.jump_){
|
||||
|
Loading…
x
Reference in New Issue
Block a user