mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-19 04:36:55 +00:00
fix some compiler warnings
This commit is contained in:
parent
2c1e980dca
commit
b4c8e8f2ea
@ -99,8 +99,8 @@ private:
|
||||
|
||||
namespace gui {
|
||||
|
||||
dialog::dimension_measurements::dimension_measurements() :x(-1), y(-1), menu_height(-1),
|
||||
interior(empty_rect), message(empty_rect), textbox(empty_rect)
|
||||
dialog::dimension_measurements::dimension_measurements() :x(-1), y(-1), interior(empty_rect),
|
||||
message(empty_rect), textbox(empty_rect), menu_height(-1)
|
||||
{
|
||||
//note: this is not defined in the header file to C++ ODR (one-definition rule)
|
||||
//since each inclusion of the header file uses a different version of empty_rect
|
||||
|
@ -88,8 +88,8 @@ dialog_manager::~dialog_manager()
|
||||
|
||||
dialog_frame::dialog_frame(CVideo &video, const std::string& title,
|
||||
const std::string* style, std::vector<button*>* buttons,
|
||||
surface_restorer* restorer, button* help_button) : video_(video),
|
||||
title_(title), dialog_style_(style ? style : &default_style),
|
||||
surface_restorer* restorer, button* help_button) : title_(title),
|
||||
video_(video), dialog_style_(style ? style : &default_style),
|
||||
buttons_(buttons), help_button_(help_button), restorer_(restorer),
|
||||
top_(image::get_image("misc/" + *dialog_style_ + "-border-top.png",image::UNSCALED)),
|
||||
bot_(image::get_image("misc/" + *dialog_style_ + "-border-bottom.png",image::UNSCALED)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user