summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-28 00:03:49 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:34 +0200
commit871c9f1cedadd29ad069a33d5ee9bd0c103015c6 (patch)
treeecf772d82b1dd821bbc1adad8e9c9c2784e3996a
parentglasm: Reduce reg allocation leaks from an exception to a log (diff)
downloadyuzu-871c9f1cedadd29ad069a33d5ee9bd0c103015c6.tar
yuzu-871c9f1cedadd29ad069a33d5ee9bd0c103015c6.tar.gz
yuzu-871c9f1cedadd29ad069a33d5ee9bd0c103015c6.tar.bz2
yuzu-871c9f1cedadd29ad069a33d5ee9bd0c103015c6.tar.lz
yuzu-871c9f1cedadd29ad069a33d5ee9bd0c103015c6.tar.xz
yuzu-871c9f1cedadd29ad069a33d5ee9bd0c103015c6.tar.zst
yuzu-871c9f1cedadd29ad069a33d5ee9bd0c103015c6.zip
-rw-r--r--src/shader_recompiler/exception.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/shader_recompiler/exception.h b/src/shader_recompiler/exception.h
index 013d7b1bf..43f08162d 100644
--- a/src/shader_recompiler/exception.h
+++ b/src/shader_recompiler/exception.h
@@ -15,22 +15,22 @@ namespace Shader {
class Exception : public std::exception {
public:
- explicit Exception(std::string message_) noexcept : message{std::move(message_)} {}
+ explicit Exception(std::string message) noexcept : err_message{std::move(message)} {}
- const char* what() const override {
- return message.c_str();
+ const char* what() const noexcept override {
+ return err_message.c_str();
}
void Prepend(std::string_view prepend) {
- message.insert(0, prepend);
+ err_message.insert(0, prepend);
}
void Append(std::string_view append) {
- message += append;
+ err_message += append;
}
private:
- std::string message;
+ std::string err_message;
};
class LogicError : public Exception {