mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-07 13:39:58 +00:00
exception: Make what() member function nodiscard
This commit is contained in:
parent
90f3678ada
commit
e490ddf327
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class Exception : public std::exception {
|
|||
public:
|
||||
explicit Exception(std::string message) noexcept : err_message{std::move(message)} {}
|
||||
|
||||
const char* what() const noexcept override {
|
||||
[[nodiscard]] const char* what() const noexcept override {
|
||||
return err_message.c_str();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue