Author: euschn
Date: Tue Jun 23 16:05:03 2009
New Revision: 36361

URL: http://svn.gna.org/viewcvs/wesnoth?rev=36361&view=rev
Log:
added const modifier to savegame_config::to_config()

Modified:
    trunk/src/gamestatus.cpp
    trunk/src/gamestatus.hpp
    trunk/src/play_controller.cpp
    trunk/src/play_controller.hpp
    trunk/src/savegame_config.hpp
    trunk/src/soundsource.cpp
    trunk/src/soundsource.hpp
    trunk/src/team.cpp
    trunk/src/team.hpp
    trunk/src/tod_manager.cpp
    trunk/src/tod_manager.hpp

Modified: trunk/src/gamestatus.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gamestatus.cpp?rev=36361&r1=36360&r2=36361&view=diff
==============================================================================
--- trunk/src/gamestatus.cpp (original)
+++ trunk/src/gamestatus.cpp Tue Jun 23 16:05:03 2009
@@ -117,7 +117,7 @@
        difficulty = gc.difficulty;
 }
 
-config game_classification::to_config()
+config game_classification::to_config() const
 {
        config cfg;
 

Modified: trunk/src/gamestatus.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gamestatus.hpp?rev=36361&r1=36360&r2=36361&view=diff
==============================================================================
--- trunk/src/gamestatus.hpp (original)
+++ trunk/src/gamestatus.hpp Tue Jun 23 16:05:03 2009
@@ -40,7 +40,7 @@
        game_classification(const config& cfg);
        game_classification(const game_classification& gc);
 
-       config to_config(); //dummy
+       config to_config() const;
 
        std::string label;                               /**< Name of the game 
(e.g. name of save file). */
        std::string parent;                              /**< Parent of the 
game (for save-threading purposes). */

Modified: trunk/src/play_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/play_controller.cpp?rev=36361&r1=36360&r2=36361&view=diff
==============================================================================
--- trunk/src/play_controller.cpp (original)
+++ trunk/src/play_controller.cpp Tue Jun 23 16:05:03 2009
@@ -521,7 +521,7 @@
 }
 
 //builds the snapshot config from its members and their configs respectively
-config play_controller::to_config()
+config play_controller::to_config() const
 {
        config cfg;
        std::stringstream buf;

Modified: trunk/src/play_controller.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/play_controller.hpp?rev=36361&r1=36360&r2=36361&view=diff
==============================================================================
--- trunk/src/play_controller.hpp (original)
+++ trunk/src/play_controller.hpp Tue Jun 23 16:05:03 2009
@@ -101,7 +101,7 @@
 
        const tod_manager& get_tod_manager() const {return tod_manager_;} 
//FIXME: added getter for tod_manager until do_replay_handle is fixed
 
-       config to_config();
+       config to_config() const;
 
 protected:
        void slice_before_scroll();

Modified: trunk/src/savegame_config.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/savegame_config.hpp?rev=36361&r1=36360&r2=36361&view=diff
==============================================================================
--- trunk/src/savegame_config.hpp (original)
+++ trunk/src/savegame_config.hpp Tue Jun 23 16:05:03 2009
@@ -22,7 +22,7 @@
 {
 public:
        virtual ~savegame_config() {};
-       virtual config to_config() = 0;
+       virtual config to_config() const = 0;
 };
 
 #endif

Modified: trunk/src/soundsource.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/soundsource.cpp?rev=36361&r1=36360&r2=36361&view=diff
==============================================================================
--- trunk/src/soundsource.cpp (original)
+++ trunk/src/soundsource.cpp Tue Jun 23 16:05:03 2009
@@ -117,7 +117,7 @@
        }
 }
 
-config manager::to_config()
+config manager::to_config() const
 {
        config cfg;
        write_sourcespecs(cfg);

Modified: trunk/src/soundsource.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/soundsource.hpp?rev=36361&r1=36360&r2=36361&view=diff
==============================================================================
--- trunk/src/soundsource.hpp (original)
+++ trunk/src/soundsource.hpp Tue Jun 23 16:05:03 2009
@@ -110,7 +110,7 @@
         */
        void write_sourcespecs(config& cfg) const;
 
-       config to_config();
+       config to_config() const;
 };
 
 /**

Modified: trunk/src/team.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/team.cpp?rev=36361&r1=36360&r2=36361&view=diff
==============================================================================
--- trunk/src/team.cpp (original)
+++ trunk/src/team.cpp Tue Jun 23 16:05:03 2009
@@ -955,7 +955,7 @@
        LOG_NG << "Added all recruitable units\n";
 }
 
-config team::to_config()
+config team::to_config() const
 {
        config cfg;
        config& result = cfg.add_child("side");

Modified: trunk/src/team.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/team.hpp?rev=36361&r1=36360&r2=36361&view=diff
==============================================================================
--- trunk/src/team.hpp (original)
+++ trunk/src/team.hpp Tue Jun 23 16:05:03 2009
@@ -313,7 +313,7 @@
        /** clear the shroud, fog, and enemies cache for all teams*/
        static void clear_caches();
 
-       config to_config();
+       config to_config() const;
 
 private:
        //Make these public if you need them, but look at knows_about_team(...) 
first.

Modified: trunk/src/tod_manager.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/tod_manager.cpp?rev=36361&r1=36360&r2=36361&view=diff
==============================================================================
--- trunk/src/tod_manager.cpp (original)
+++ trunk/src/tod_manager.cpp Tue Jun 23 16:05:03 2009
@@ -69,7 +69,7 @@
        return *this;
 }
 
-config tod_manager::to_config()
+config tod_manager::to_config() const
 {
        config cfg;
        std::stringstream buf;

Modified: trunk/src/tod_manager.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/tod_manager.hpp?rev=36361&r1=36360&r2=36361&view=diff
==============================================================================
--- trunk/src/tod_manager.hpp (original)
+++ trunk/src/tod_manager.hpp Tue Jun 23 16:05:03 2009
@@ -35,7 +35,7 @@
                ~tod_manager() {}
                tod_manager& operator=(const tod_manager& manager);
 
-               config to_config();
+               config to_config() const;
 
                /** Returns time of day object for current turn. */
                time_of_day get_time_of_day() const;


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

Reply via email to