mail[Wesnoth-commits] r44307 - /trunk/src/persist_context.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:29:
Author: mordante
Date: Sun Jul 18 18:29:01 2010
New Revision: 44307

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

Issue found by cppcheck.

Modified:
    trunk/src/persist_context.hpp

Modified: trunk/src/persist_context.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/persist_context.hpp?rev=44307&r1=44306&r2=44307&view=diff
==============================================================================
--- trunk/src/persist_context.hpp (original)
+++ trunk/src/persist_context.hpp Sun Jul 18 18:29:01 2010
@@ -189,6 +189,6 @@
        bool dirty() const {
                return true;
        };
-       operator bool() { return valid_; }
+       operator bool() const { return valid_; }
 };
 #endif




Related Messages


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