mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-14 06:00:14 +02:00
DirectXTex: Fixed syntax error
This commit is contained in:
parent
c4c09c2966
commit
5a6c053e99
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user