Fix compiler warnings
This commit is contained in:
parent
e3ab484f5e
commit
9232b5bf87
4 changed files with 12 additions and 5 deletions
|
@ -147,7 +147,6 @@ tlobby_main::tlobby_main(const config& game_config,
|
|||
, window_(nullptr)
|
||||
, lobby_info_(info)
|
||||
, preferences_callback_()
|
||||
, active_window_(0)
|
||||
, filter_friends_(nullptr)
|
||||
, filter_ignored_(nullptr)
|
||||
, filter_slots_(nullptr)
|
||||
|
|
|
@ -198,8 +198,6 @@ private:
|
|||
|
||||
std::function<void()> preferences_callback_;
|
||||
|
||||
size_t active_window_;
|
||||
|
||||
ttoggle_button* filter_friends_;
|
||||
|
||||
ttoggle_button* filter_ignored_;
|
||||
|
|
|
@ -531,5 +531,5 @@ hotkey::ACTION_STATE play_controller::hotkey_handler::get_action_state(hotkey::H
|
|||
|
||||
void play_controller::hotkey_handler::load_autosave(const std::string& filename)
|
||||
{
|
||||
throw savegame::load_game_exception({ filename });
|
||||
throw savegame::load_game_exception(filename);
|
||||
}
|
||||
|
|
|
@ -59,6 +59,15 @@ struct load_game_metadata {
|
|||
|
||||
/** Config information of the savefile to be loaded. */
|
||||
config load_config;
|
||||
|
||||
explicit load_game_metadata(const std::string& fname = "", const std::string& hard = "",
|
||||
bool replay = false, bool stop = false, bool change = false,
|
||||
const config& summary = config(), const config& info = config())
|
||||
: filename(fname), difficulty(hard)
|
||||
, show_replay(replay), cancel_orders(stop), select_difficulty(change)
|
||||
, summary(summary), load_config(info)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -69,8 +78,9 @@ class load_game_exception
|
|||
: public tlua_jailbreak_exception, public std::exception
|
||||
{
|
||||
public:
|
||||
load_game_exception()
|
||||
load_game_exception(const std::string& fname)
|
||||
: tlua_jailbreak_exception()
|
||||
, data_(fname)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue