diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-12 17:49:43 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-12 22:39:06 +0200 |
| commit | 6a335fcca28693aa9039ad4e8a13ff71e9d2f9cd (patch) | |
| tree | da2c0a81932306c52d192425743e5c9efe4ae88a /include/winapi/sid.hpp | |
| parent | minor fixes (diff) | |
| download | winapi-common-6a335fcca28693aa9039ad4e8a13ff71e9d2f9cd.tar.gz winapi-common-6a335fcca28693aa9039ad4e8a13ff71e9d2f9cd.zip | |
unify my .clang-format files
Diffstat (limited to 'include/winapi/sid.hpp')
| -rw-r--r-- | include/winapi/sid.hpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/include/winapi/sid.hpp b/include/winapi/sid.hpp index af4251b..008d250 100644 --- a/include/winapi/sid.hpp +++ b/include/winapi/sid.hpp @@ -26,14 +26,24 @@ public: explicit Sid(const Buffer& buffer) : m_buffer{buffer} {} - explicit operator SID&() { return get_impl(); } - explicit operator const SID&() const { return get_impl(); } + explicit operator SID&() { + return get_impl(); + } + + explicit operator const SID&() const { + return get_impl(); + } std::string to_string() const; private: - Impl& get_impl() { return *reinterpret_cast<SID*>(m_buffer.data()); } - const Impl& get_impl() const { return *reinterpret_cast<const SID*>(m_buffer.data()); } + Impl& get_impl() { + return *reinterpret_cast<SID*>(m_buffer.data()); + } + + const Impl& get_impl() const { + return *reinterpret_cast<const SID*>(m_buffer.data()); + } Buffer m_buffer; }; |
