diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-01 15:34:26 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-01 15:34:26 +0300 |
commit | 309a2f9fbd82f5acdcd969dac089b06aa5ad86a6 (patch) | |
tree | 58f918a2786a1b2d4715a9535cf728edca35c1f0 /um/service/src/service_manager.cpp | |
parent | README updates (diff) | |
download | windows7-drivers-309a2f9fbd82f5acdcd969dac089b06aa5ad86a6.tar.gz windows7-drivers-309a2f9fbd82f5acdcd969dac089b06aa5ad86a6.zip |
service: code style
Diffstat (limited to '')
-rw-r--r-- | um/service/src/service_manager.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/um/service/src/service_manager.cpp b/um/service/src/service_manager.cpp index 61662de..530976c 100644 --- a/um/service/src/service_manager.cpp +++ b/um/service/src/service_manager.cpp @@ -8,13 +8,12 @@ #include <Windows.h> #include <system_error> -#include <utility> namespace libservice { ServiceManager ServiceManager::open() { - SC_HANDLE raw = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS); + const auto raw = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS); if (NULL == raw) { @@ -25,20 +24,4 @@ namespace libservice return ServiceHandle(raw); } - - void swap(ServiceManager& a, ServiceManager& b) LIBSERVICE_NOEXCEPT - { - a.swap(b); - } -} - -namespace std -{ - template <> - void swap<libservice::ServiceManager>( - libservice::ServiceManager& a, - libservice::ServiceManager& b) LIBSERVICE_NOEXCEPT - { - a.swap(b); - } } |