From 5a6c053e99b82d9145f02ce89a6e9fd4f9336ffb Mon Sep 17 00:00:00 2001 From: walbourn_cp Date: Mon, 29 Jul 2013 18:06:05 -0700 Subject: [PATCH] DirectXTex: Fixed syntax error --- DirectXTex/scoped.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DirectXTex/scoped.h b/DirectXTex/scoped.h index 23b3485..c81ee30 100644 --- a/DirectXTex/scoped.h +++ b/DirectXTex/scoped.h @@ -65,13 +65,13 @@ public: operator bool() const { return (_pointer != nullptr); } - T& operator= (_In_opt_ T* other) + ScopedObject& operator= (_In_opt_ T* other) { if ( _pointer != other ) { if ( _pointer) { _pointer->Release(); } _pointer = other; - if ( other ) { other->AddRef() }; + if ( other ) { other->AddRef(); }; } return *this; }