Author: loonycyborg
Date: Mon May 23 13:59:04 2011
New Revision: 49635

URL: http://svn.gna.org/viewcvs/wesnoth?rev=49635&view=rev
Log:
Fixed compile warnings.

Modified:
    trunk/src/tod_manager.cpp
    trunk/src/tod_manager.hpp

Modified: trunk/src/tod_manager.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/tod_manager.cpp?rev=49635&r1=49634&r2=49635&view=diff
==============================================================================
--- trunk/src/tod_manager.cpp (original)
+++ trunk/src/tod_manager.cpp Mon May 23 13:59:04 2011
@@ -196,7 +196,7 @@
        }
 }
 
-const int tod_manager::get_start_ToD(const config &level) const
+int tod_manager::get_start_ToD(const config &level) const
 {
        const config::attribute_value& current_tod = level["current_tod"];
        if (!current_tod.blank())
@@ -311,7 +311,7 @@
        }
 }
 
-const int tod_manager::calculate_current_time(
+int tod_manager::calculate_current_time(
        const int number_of_times,
        const int for_turn_number,
        const int current_time,

Modified: trunk/src/tod_manager.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/tod_manager.hpp?rev=49635&r1=49634&r2=49635&view=diff
==============================================================================
--- trunk/src/tod_manager.hpp (original)
+++ trunk/src/tod_manager.hpp Mon May 23 13:59:04 2011
@@ -115,7 +115,7 @@
                 */
                bool is_time_left();
        private:
-               const int get_start_ToD(const config& level) const;
+               int get_start_ToD(const config& level) const;
 
                /**
                 * Returns time of day object in the turn "nturn".
@@ -130,7 +130,7 @@
                 * for_turn_number: for which current turn
                 * current_time: the main or time area's current time
                 */
-               const int calculate_current_time(
+               int calculate_current_time(
                        const int number_of_times,
                        const int for_turn_number,
                        const int current_time,


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to