1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-12-29 12:41:07 +00:00

Code review feedback

This commit is contained in:
Chuck Walbourn 2017-07-10 00:09:56 -07:00
parent 0a85ac75a0
commit 6bac563715

View File

@ -27,14 +27,14 @@ typedef std::unique_ptr<DirectX::XMVECTOR[], aligned_deleter> ScopedAlignedArray
//---------------------------------------------------------------------------------
struct handle_closer { void operator()(HANDLE h) { assert(h != INVALID_HANDLE_VALUE); if (h) CloseHandle(h); } };
typedef public std::unique_ptr<void, handle_closer> ScopedHandle;
typedef std::unique_ptr<void, handle_closer> 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<void, find_closer> ScopedFindHandle;
typedef std::unique_ptr<void, find_closer> ScopedFindHandle;
//---------------------------------------------------------------------------------
class auto_delete_file