From 1dab244aaad8694ba37ef43caedd8c8ba0310c00 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 5 Nov 2018 20:54:48 +0800 Subject: ... --- src/exception.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/exception.h') diff --git a/src/exception.h b/src/exception.h index 6749b684..ae9457e7 100644 --- a/src/exception.h +++ b/src/exception.h @@ -2,7 +2,6 @@ #include "system_headers.h" #include -#include #include "base.h" @@ -11,7 +10,7 @@ namespace cru { class HResultError : public std::runtime_error { public: - explicit HResultError(HRESULT h_result, std::optional additional_message = std::nullopt); + explicit HResultError(HRESULT h_result, std::optional additional_message = std::nullopt); HResultError(const HResultError& other) = default; HResultError(HResultError&& other) = default; HResultError& operator=(const HResultError& other) = default; @@ -32,7 +31,7 @@ namespace cru { throw HResultError(h_result); } - inline void ThrowIfFailed(const HRESULT h_result, const std::string_view& message) { + inline void ThrowIfFailed(const HRESULT h_result, const MultiByteStringView& message) { if (FAILED(h_result)) throw HResultError(h_result, message); } @@ -40,7 +39,7 @@ namespace cru { class Win32Error : public std::runtime_error { public: - explicit Win32Error(DWORD error_code, std::optional additional_message = std::nullopt); + explicit Win32Error(DWORD error_code, std::optional additional_message = std::nullopt); Win32Error(const Win32Error& other) = default; Win32Error(Win32Error&& other) = default; Win32Error& operator=(const Win32Error& other) = default; -- cgit v1.2.3