Skip to content
Snippets Groups Projects

cleanup of SmartRef

Merged Gerhard Raven requested to merge remove-dup-smartref-ctor into master
@@ -97,17 +97,10 @@ public:
_setEnvironment( 0, 0 );
}
/// Standard Constructor with initialisation
SmartRef( TYPE* pObject ) {
m_base.m_hintID = INVALID;
m_base.m_linkID = INVALID;
m_target = pObject;
_setEnvironment( 0, 0 );
}
/// Standard Constructor with initialisation from const object
SmartRef( const TYPE* pObject ) {
m_base.m_hintID = INVALID;
m_base.m_linkID = INVALID;
m_target = const_cast<TYPE*>( pObject );
m_target = pObject;
_setEnvironment( 0, 0 );
}
/// Copy Constructor
Loading