aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-27 21:50:58 +0800
committercrupest <crupest@outlook.com>2018-09-27 21:50:58 +0800
commit692af0a1b202f128b6871ba790c0610f036e2944 (patch)
tree894b68097687edca45d4ea69a6516b9ee2582233
parent1fdc86fe5f8d18fdc8927f663aaeaa0b6b8f1e9b (diff)
downloadcru-692af0a1b202f128b6871ba790c0610f036e2944.tar.gz
cru-692af0a1b202f128b6871ba790c0610f036e2944.tar.bz2
cru-692af0a1b202f128b6871ba790c0610f036e2944.zip
ThrowIfFailed: string -> string_view.
-rw-r--r--src/exception.h2
1 files changed, 1 insertions, 1 deletions
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);
}