(svn r9095) [cpp_gui] -Fix: const in assignment cpp_gui
authorKUDr
Sat, 10 Mar 2007 11:05:19 +0000
branchcpp_gui
changeset 6296 3205d21b662f
parent 6295 a88d8c2cff6e
child 6297 4bf29d14edba
(svn r9095) [cpp_gui] -Fix: const in assignment
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);