aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-14 02:01:37 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-14 02:01:37 +0300
commit1b6e5d984bad351f7ec96687854bfc52cfc83dac (patch)
treefe7dedbc189c63a82d6cdf2fd72fbf4d8a25f2ab /include
parentadd Handle class (diff)
downloadwinapi-common-1b6e5d984bad351f7ec96687854bfc52cfc83dac.tar.gz
winapi-common-1b6e5d984bad351f7ec96687854bfc52cfc83dac.zip
add .clang-format
Diffstat (limited to 'include')
-rw-r--r--include/winapi/handle.hpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/include/winapi/handle.hpp b/include/winapi/handle.hpp
index 9e9661b..9714db3 100644
--- a/include/winapi/handle.hpp
+++ b/include/winapi/handle.hpp
@@ -21,15 +21,11 @@ class Handle {
public:
Handle() = default;
- explicit Handle(HANDLE raw)
- : impl{raw}
- { }
+ explicit Handle(HANDLE raw) : impl{raw} {}
- Handle(Handle&& other) BOOST_NOEXCEPT_OR_NOTHROW {
- swap(other);
- }
+ Handle(Handle&& other) BOOST_NOEXCEPT_OR_NOTHROW { swap(other); }
- Handle& operator=(Handle other) BOOST_NOEXCEPT_OR_NOTHROW {
+ Handle& operator=(Handle other) BOOST_NOEXCEPT_OR_NOTHROW {
swap(other);
return *this;
}
@@ -61,7 +57,7 @@ inline void swap(Handle& a, Handle& b) BOOST_NOEXCEPT_OR_NOTHROW {
a.swap(b);
}
-}
+} // namespace winapi
namespace std {