Author: mordante
Date: Tue Oct  7 20:36:26 2008
New Revision: 29952

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29952&view=rev
Log:
Set the const modifier properly.

Modified:
    trunk/src/copy_policy.hpp

Modified: trunk/src/copy_policy.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/copy_policy.hpp?rev=29952&r1=29951&r2=29952&view=diff
==============================================================================
--- trunk/src/copy_policy.hpp (original)
+++ trunk/src/copy_policy.hpp Tue Oct  7 20:36:26 2008
@@ -79,7 +79,7 @@
 {
 public:
        /** The type to use in the copy constructor and assignment operator. */
-       typedef const typename utils::treference_type<T>::type rhs_type;
+       typedef typename utils::treference_type<const T>::type rhs_type;
 
        void copy(rhs_type /*rhs*/) 
        {
@@ -97,7 +97,7 @@
 {
 public:
        /** The type to use in the copy constructor and assignment operator. */
-       typedef const typename utils::treference_type<T>::type rhs_type;
+       typedef typename utils::treference_type<const T>::type rhs_type;
 
        void copy(rhs_type /*rhs*/) 
        { 
@@ -118,7 +118,7 @@
 {
 public:
        /** The type to use in the copy constructor and assignment operator. */
-       typedef const typename utils::treference_type<T>::type rhs_type;
+       typedef typename utils::treference_type<const T>::type rhs_type;
 
        void copy(rhs_type rhs) 
        { 


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

Reply via email to