mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-19 19:09:05 +00:00
Set the const modifier properly.
This commit is contained in:
parent
07fc801697
commit
0506456bc1
@ -79,7 +79,7 @@ class tno_copy
|
||||
{
|
||||
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 @@ class tshallow_copy
|
||||
{
|
||||
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 @@ class tdeep_copy
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user