diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-07-15 22:08:33 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-07-15 22:08:33 +0300 |
commit | 01c1146276f7319843c357480c4374fe555f07c5 (patch) | |
tree | ca04e44b03b126de4ad3071e3e70df3982f9f174 /utils/libservice/include/libservice/service_manager.hpp | |
parent | README updates (diff) | |
download | windows7-drivers-01c1146276f7319843c357480c4374fe555f07c5.tar.gz windows7-drivers-01c1146276f7319843c357480c4374fe555f07c5.zip |
utils: code style
Diffstat (limited to 'utils/libservice/include/libservice/service_manager.hpp')
-rw-r--r-- | utils/libservice/include/libservice/service_manager.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/libservice/include/libservice/service_manager.hpp b/utils/libservice/include/libservice/service_manager.hpp index c39b99e..8d8b862 100644 --- a/utils/libservice/include/libservice/service_manager.hpp +++ b/utils/libservice/include/libservice/service_manager.hpp @@ -36,20 +36,20 @@ namespace libservice void swap(ServiceManager& other) LIBSERVICE_NOEXCEPT { using std::swap; - swap(m_handle, other.m_handle); + swap(handle, other.handle); } - explicit operator SC_HANDLE() const + operator SC_HANDLE() const { - return static_cast<SC_HANDLE>(m_handle); + return handle; } private: - explicit ServiceManager(ServiceHandle h) - : m_handle(std::move(h)) + ServiceManager(ServiceHandle handle) + : handle(std::move(handle)) { } - ServiceHandle m_handle; + ServiceHandle handle; ServiceManager(const ServiceManager&) = delete; }; |