]> git.cworth.org Git - apitrace/blobdiff - thirdparty/directxtex/DirectXTex/scoped.h
directxtex: Get it building on MinGW.
[apitrace] / thirdparty / directxtex / DirectXTex / scoped.h
index 358290d7d55ff6d049e47547ffbec219dea813fd..8181606936e7d29adc1e3ae66a3d514b83b41e27 100644 (file)
@@ -33,7 +33,7 @@ typedef std::unique_ptr<DirectX::XMVECTOR, aligned_deleter> ScopedAlignedArrayXM
 //---------------------------------------------------------------------------------
 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; }