fix some compiler warnings

This commit is contained in:
Mark de Wever 2007-06-01 17:13:06 +00:00
parent 2c1e980dca
commit b4c8e8f2ea
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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)),