From 692af0a1b202f128b6871ba790c0610f036e2944 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 27 Sep 2018 21:50:58 +0800 Subject: ThrowIfFailed: string -> string_view. --- src/exception.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/exception.h') diff --git a/src/exception.h b/src/exception.h index 2817f261..6749b684 100644 --- a/src/exception.h +++ b/src/exception.h @@ -32,7 +32,7 @@ namespace cru { throw HResultError(h_result); } - inline void ThrowIfFailed(const HRESULT h_result, const std::string& message) { + inline void ThrowIfFailed(const HRESULT h_result, const std::string_view& message) { if (FAILED(h_result)) throw HResultError(h_result, message); } -- cgit v1.2.3