Minor code review feedback

This commit is contained in:
Chuck Walbourn
2018-06-07 18:25:52 -07:00
parent 72e9775e68
commit 94c68685a2
8 changed files with 9 additions and 9 deletions

View File

@@ -355,7 +355,7 @@ const SValue g_pExtFileTypes[] =
namespace
{
inline HANDLE safe_handle(HANDLE h) { return (h == INVALID_HANDLE_VALUE) ? 0 : h; }
inline HANDLE safe_handle(HANDLE h) { return (h == INVALID_HANDLE_VALUE) ? nullptr : h; }
struct find_closer { void operator()(HANDLE h) { assert(h != INVALID_HANDLE_VALUE); if (h) FindClose(h); } };