mail[Wesnoth-commits] r44306 - /trunk/src/reference_counted_object.hpp


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

Header


Content

Posted by koraq on July 18, 2010 - 18:28:
Author: mordante
Date: Sun Jul 18 18:28:38 2010
New Revision: 44306

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44306&view=rev
Log:
Make a member function a const member function.

Issue found by cppcheck.

Modified:
    trunk/src/reference_counted_object.hpp

Modified: trunk/src/reference_counted_object.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/reference_counted_object.hpp?rev=44306&r1=44305&r2=44306&view=diff
==============================================================================
--- trunk/src/reference_counted_object.hpp (original)
+++ trunk/src/reference_counted_object.hpp Sun Jul 18 18:28:38 2010
@@ -33,7 +33,7 @@
        int refcount() const { return count_; }
 
 protected:
-       void turn_reference_counting_off() { count_ = 1000000; }
+       void turn_reference_counting_off() const { count_ = 1000000; }
 private:
        mutable int count_;
 };




Related Messages


Powered by MHonArc, Updated Sun Jul 18 18:40:12 2010