diff --git a/DirectXTex/scoped.h b/DirectXTex/scoped.h index 47f1d6c..6e553c7 100644 --- a/DirectXTex/scoped.h +++ b/DirectXTex/scoped.h @@ -27,14 +27,14 @@ typedef std::unique_ptr ScopedAlignedArray //--------------------------------------------------------------------------------- struct handle_closer { void operator()(HANDLE h) { assert(h != INVALID_HANDLE_VALUE); if (h) CloseHandle(h); } }; -typedef public std::unique_ptr ScopedHandle; +typedef std::unique_ptr ScopedHandle; inline HANDLE safe_handle( HANDLE h ) { return (h == INVALID_HANDLE_VALUE) ? 0 : h; } //--------------------------------------------------------------------------------- struct find_closer { void operator()(HANDLE h) { assert(h != INVALID_HANDLE_VALUE); if (h) FindClose(h); } }; -typedef public std::unique_ptr ScopedFindHandle; +typedef std::unique_ptr ScopedFindHandle; //--------------------------------------------------------------------------------- class auto_delete_file