diff --git a/DDSTextureLoader/DDSTextureLoader.cpp b/DDSTextureLoader/DDSTextureLoader.cpp index 5fce88b..f4669f9 100644 --- a/DDSTextureLoader/DDSTextureLoader.cpp +++ b/DDSTextureLoader/DDSTextureLoader.cpp @@ -119,7 +119,7 @@ namespace { struct handle_closer { void operator()(HANDLE h) { 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; } diff --git a/DDSTextureLoader/DDSTextureLoader12.cpp b/DDSTextureLoader/DDSTextureLoader12.cpp index 82ef842..79d85be 100644 --- a/DDSTextureLoader/DDSTextureLoader12.cpp +++ b/DDSTextureLoader/DDSTextureLoader12.cpp @@ -117,7 +117,7 @@ namespace { struct handle_closer { void operator()(HANDLE h) { 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; } diff --git a/ScreenGrab/ScreenGrab.cpp b/ScreenGrab/ScreenGrab.cpp index 3339319..7205dfb 100644 --- a/ScreenGrab/ScreenGrab.cpp +++ b/ScreenGrab/ScreenGrab.cpp @@ -195,7 +195,7 @@ namespace //----------------------------------------------------------------------------- struct handle_closer { void operator()(HANDLE h) { 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; } diff --git a/ScreenGrab/ScreenGrab12.cpp b/ScreenGrab/ScreenGrab12.cpp index 7b59d43..01028a0 100644 --- a/ScreenGrab/ScreenGrab12.cpp +++ b/ScreenGrab/ScreenGrab12.cpp @@ -195,7 +195,7 @@ namespace //----------------------------------------------------------------------------- struct handle_closer { void operator()(HANDLE h) { 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; } diff --git a/Texassemble/texassemble.cpp b/Texassemble/texassemble.cpp index cf10c00..fda34fe 100644 --- a/Texassemble/texassemble.cpp +++ b/Texassemble/texassemble.cpp @@ -290,7 +290,7 @@ namespace 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; #pragma prefast(disable : 26018, "Only used with static internal arrays") diff --git a/Texconv/texconv.cpp b/Texconv/texconv.cpp index d7ac5fd..ca83a98 100644 --- a/Texconv/texconv.cpp +++ b/Texconv/texconv.cpp @@ -436,7 +436,7 @@ namespace 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; inline static bool ispow2(size_t x) { diff --git a/Texdiag/texdiag.cpp b/Texdiag/texdiag.cpp index 8c3fda5..9486733 100644 --- a/Texdiag/texdiag.cpp +++ b/Texdiag/texdiag.cpp @@ -359,7 +359,7 @@ namespace 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; #pragma prefast(disable : 26018, "Only used with static internal arrays")