# HG changeset patch # User KUDr # Date 1173524719 0 # Node ID 3205d21b662fc80754481b0148dbbca15edd7805 # Parent a88d8c2cff6e4746cb0b9cc576094e7b558d6792 (svn r9095) [cpp_gui] -Fix: const in assignment diff -r a88d8c2cff6e -r 3205d21b662f src/misc/countedptr.hpp --- a/src/misc/countedptr.hpp Sat Mar 10 08:53:59 2007 +0000 +++ b/src/misc/countedptr.hpp Sat Mar 10 11:05:19 2007 +0000 @@ -63,7 +63,7 @@ FORCEINLINE CCountedPtr& operator = (Tcls* pT) {Assign(pT); return *this;} /** assignment operator from another smart ptr */ - FORCEINLINE CCountedPtr& operator = (CCountedPtr& src) {Assign(src.m_pT); return *this;} + FORCEINLINE CCountedPtr& operator = (const CCountedPtr& src) {Assign(src.m_pT); return *this;} /** assignment operator helper */ FORCEINLINE void Assign(Tcls* pT);