aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/pdb/handle.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-14 19:36:53 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-14 20:07:47 +0300
commit0bff1d2776e0da589dd98eca69e7f04fb07dfd02 (patch)
treef7f8b905a34133d80e93d20770bdb092c04e247d /include/pdb/handle.hpp
parentclang-format: don't BinPackArguments (diff)
downloadwinapi-debug-0bff1d2776e0da589dd98eca69e7f04fb07dfd02.tar.gz
winapi-debug-0bff1d2776e0da589dd98eca69e7f04fb07dfd02.zip
clang-format all the code
Diffstat (limited to 'include/pdb/handle.hpp')
-rw-r--r--include/pdb/handle.hpp30
1 files changed, 14 insertions, 16 deletions
diff --git a/include/pdb/handle.hpp b/include/pdb/handle.hpp
index 52fb805..7c0cc40 100644
--- a/include/pdb/handle.hpp
+++ b/include/pdb/handle.hpp
@@ -8,22 +8,20 @@
#include <Windows.h>
#include <cassert>
-
#include <memory>
-namespace pdb
-{
- struct CloseHandle
- {
- void operator()(HANDLE raw) const
- {
- if (raw == NULL || raw == INVALID_HANDLE_VALUE)
- return;
- const auto ret = ::CloseHandle(raw);
- assert(ret);
- UNREFERENCED_PARAMETER(ret);
- }
- };
+namespace pdb {
+
+struct CloseHandle {
+ void operator()(HANDLE raw) const {
+ if (raw == NULL || raw == INVALID_HANDLE_VALUE)
+ return;
+ const auto ret = ::CloseHandle(raw);
+ assert(ret);
+ UNREFERENCED_PARAMETER(ret);
+ }
+};
+
+typedef std::unique_ptr<void, CloseHandle> Handle;
- typedef std::unique_ptr<void, CloseHandle> Handle;
-}
+} // namespace pdb