From 669a246c175a002e368404fc0037379900bcca04 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 1 May 2017 16:21:37 +0300 Subject: service: refactoring * No more compiler-specific macros. --- um/service/src/service_manager.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'um/service/src/service_manager.cpp') diff --git a/um/service/src/service_manager.cpp b/um/service/src/service_manager.cpp index 58377ed..48c6bfe 100644 --- a/um/service/src/service_manager.cpp +++ b/um/service/src/service_manager.cpp @@ -7,8 +7,6 @@ #include -#include - namespace service { ServiceManager ServiceManager::open() @@ -18,8 +16,7 @@ namespace service if (NULL == raw) { const auto ec = GetLastError(); - throw std::system_error( - ec, WindowsErrorCategory::get(), LIBSERVICE_ERROR_PREFIX); + throw windows_error::make(ec, __FILE__, __LINE__, __FUNCTION__); } return ServiceHandle(raw); -- cgit v1.2.3