From 6bac56371501ec464badbbacd783c0a42594d801 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Mon, 10 Jul 2017 00:09:56 -0700 Subject: [PATCH] Code review feedback --- DirectXTex/scoped.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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