Code review feedback
This commit is contained in:
Родитель
0a85ac75a0
Коммит
6bac563715
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче