mail[Wesnoth-commits] r27173 - /trunk/src/server/player.hpp


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

Header


Content

Posted by koraq on June 14, 2008 - 16:23:
Author: mordante
Date: Sat Jun 14 16:23:11 2008
New Revision: 27173

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27173&view=rev
Log:
Fix g++ warning about useless and missing const and some small indention 
cleanups.

Modified:
    trunk/src/server/player.hpp

Modified: trunk/src/server/player.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/player.hpp?rev=27173&r1=27172&r2=27173&view=diff
==============================================================================
--- trunk/src/server/player.hpp (original)
+++ trunk/src/server/player.hpp Sat Jun 14 16:23:11 2008
@@ -32,9 +32,9 @@
 
 
        const std::string& name() const { return name_; }
-        const bool selective_ping() const { return selective_ping_ ; }
+       bool selective_ping() const { return selective_ping_ ; }
 
-       simple_wml::node* config_address() const { return &cfg_; }
+       const simple_wml::node* config_address() const { return &cfg_; }
 
        bool silenced() const { return messages_since_flood_start_ > 
MaxMessages; }
        bool is_message_flooding();
@@ -42,7 +42,7 @@
 private:
        const std::string name_;
        simple_wml::node& cfg_;
-        const bool selective_ping_ ;
+       const bool selective_ping_ ;
 
        time_t flood_start_;
        unsigned int messages_since_flood_start_;




Related Messages


Powered by MHonArc, Updated Sat Jun 14 17:02:18 2008