aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/um/service/src/service_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'um/service/src/service_manager.cpp')
-rw-r--r--um/service/src/service_manager.cpp19
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);
- }
}