DirectXTex: Fixed syntax error

This commit is contained in:
walbourn_cp 2013-07-29 18:06:05 -07:00
parent c4c09c2966
commit 5a6c053e99

View File

@ -65,13 +65,13 @@ public:
operator bool() const { return (_pointer != nullptr); } operator bool() const { return (_pointer != nullptr); }
T& operator= (_In_opt_ T* other) ScopedObject& operator= (_In_opt_ T* other)
{ {
if ( _pointer != other ) if ( _pointer != other )
{ {
if ( _pointer) { _pointer->Release(); } if ( _pointer) { _pointer->Release(); }
_pointer = other; _pointer = other;
if ( other ) { other->AddRef() }; if ( other ) { other->AddRef(); };
} }
return *this; return *this;
} }