Merge fixes from trunk.
This commit is contained in:
parent
3f13eb89f1
commit
73288eb24b
@ -43,8 +43,11 @@ public:
|
|||||||
|
|
||||||
/** Delete owned pointer and assign new one. */
|
/** Delete owned pointer and assign new one. */
|
||||||
void operator=( T * p ) {
|
void operator=( T * p ) {
|
||||||
delete m_ptr;
|
if (p != m_ptr)
|
||||||
m_ptr = p;
|
{
|
||||||
|
delete m_ptr;
|
||||||
|
m_ptr = p;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Member access. */
|
/** Member access. */
|
||||||
@ -249,14 +252,14 @@ public:
|
|||||||
/** -> operator. */
|
/** -> operator. */
|
||||||
BaseClass * operator -> () const
|
BaseClass * operator -> () const
|
||||||
{
|
{
|
||||||
piCheck( m_ptr != NULL );
|
nvCheck( m_ptr != NULL );
|
||||||
return m_ptr;
|
return m_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** * operator. */
|
/** * operator. */
|
||||||
BaseClass & operator*() const
|
BaseClass & operator*() const
|
||||||
{
|
{
|
||||||
piCheck( m_ptr != NULL );
|
nvCheck( m_ptr != NULL );
|
||||||
return *m_ptr;
|
return *m_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user