Author: brunowolff
Date: Wed Mar 19 16:23:47 2008
New Revision: 24817
URL: http://svn.gna.org/viewcvs/wesnoth?rev=24817&view=rev
Log:
Silence gcc 4.3 warning about const return type.
Modified:
trunk/src/construct_dialog.cpp
trunk/src/construct_dialog.hpp
Modified: trunk/src/construct_dialog.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/construct_dialog.cpp?rev=24817&r1=24816&r2=24817&view=diff
==============================================================================
--- trunk/src/construct_dialog.cpp (original)
+++ trunk/src/construct_dialog.cpp Wed Mar 19 16:23:47 2008
@@ -191,7 +191,7 @@
// }
}
-const bool dialog::option_checked(unsigned int option_index)
+bool dialog::option_checked(unsigned int option_index)
{
unsigned int i = 0;
button_pool_iterator b;
Modified: trunk/src/construct_dialog.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/construct_dialog.hpp?rev=24817&r1=24816&r2=24817&view=diff
==============================================================================
--- trunk/src/construct_dialog.hpp (original)
+++ trunk/src/construct_dialog.hpp Wed Mar 19 16:23:47 2008
@@ -244,7 +244,7 @@
bool done() const { return (result_ != CONTINUE_DIALOG); }
const std::string textbox_text() const { return text_widget_->text();}
dialog_textbox& get_textbox() const { return *text_widget_; }
- const bool option_checked(unsigned int option_index=0);
+ bool option_checked(unsigned int option_index=0);
display& get_display() { return disp_; }
protected:
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits