diff options
| author | crupest <crupest@outlook.com> | 2018-09-27 21:50:58 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2018-09-27 21:50:58 +0800 |
| commit | 692af0a1b202f128b6871ba790c0610f036e2944 (patch) | |
| tree | 894b68097687edca45d4ea69a6516b9ee2582233 /src | |
| parent | 1fdc86fe5f8d18fdc8927f663aaeaa0b6b8f1e9b (diff) | |
| download | cru-692af0a1b202f128b6871ba790c0610f036e2944.tar.gz cru-692af0a1b202f128b6871ba790c0610f036e2944.tar.bz2 cru-692af0a1b202f128b6871ba790c0610f036e2944.zip | |
ThrowIfFailed: string -> string_view.
Diffstat (limited to 'src')
| -rw-r--r-- | src/exception.h | 2 |
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); } |
