X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=thirdparty%2Fdirectxtex%2FDirectXTex%2Fscoped.h;fp=thirdparty%2Fdirectxtex%2FDirectXTex%2Fscoped.h;h=8181606936e7d29adc1e3ae66a3d514b83b41e27;hb=692c0c1359bc49158b74960ca5d77cb0730418f0;hp=358290d7d55ff6d049e47547ffbec219dea813fd;hpb=51410519915899055f0ac3678e77833fe9fbded9;p=apitrace diff --git a/thirdparty/directxtex/DirectXTex/scoped.h b/thirdparty/directxtex/DirectXTex/scoped.h index 358290d..8181606 100644 --- a/thirdparty/directxtex/DirectXTex/scoped.h +++ b/thirdparty/directxtex/DirectXTex/scoped.h @@ -33,7 +33,7 @@ typedef std::unique_ptr ScopedAlignedArrayXM //--------------------------------------------------------------------------------- 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; }