mail[Wesnoth-commits] r29110 - in /trunk/src: config_cache.cpp config_cache.hpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on August 30, 2008 - 17:15:
Author: mordante
Date: Sat Aug 30 16:35:17 2008
New Revision: 29110

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29110&view=rev
Log:
Fix some compiler warnings.

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

Modified: trunk/src/config_cache.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/config_cache.cpp?rev=29110&r1=29109&r2=29110&view=diff
==============================================================================
--- trunk/src/config_cache.cpp (original)
+++ trunk/src/config_cache.cpp Sat Aug 30 16:35:17 2008
@@ -288,7 +288,6 @@
        void config_cache::read_defines_queue()
        {
                const config_cache_transaction::filenames& files = 
config_cache_transaction::instance().get_define_files();
-               preproc_map& active = 
config_cache_transaction::instance().get_active_map(defines_map_);
                std::for_each(files.begin(), files.end(),
                                boost::bind(&config_cache::read_defines_file,
                                        this,

Modified: trunk/src/config_cache.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/config_cache.hpp?rev=29110&r1=29109&r2=29110&view=diff
==============================================================================
--- trunk/src/config_cache.hpp (original)
+++ trunk/src/config_cache.hpp Sat Aug 30 16:35:17 2008
@@ -56,11 +56,12 @@
 
                                ~scoped_preproc_define_internal()
                                {
-                                       if(add_)
+                                       if(add_) {
                                                if (path_.empty())
                                                        
T::instance().remove_define(name_);
                                                else
                                                        
T::instance().remove_path_define(path_, name_);
+                                       }
                                }
                };
 




Related Messages


Powered by MHonArc, Updated Sat Aug 30 17:21:53 2008