summaryrefslogtreecommitdiffstatshomepage
path: root/include/winapi/sid.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/winapi/sid.hpp')
-rw-r--r--include/winapi/sid.hpp18
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;
};