aboutsummaryrefslogtreecommitdiffstats
path: root/core/except.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/except.h')
-rw-r--r--core/except.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/except.h b/core/except.h
index 0e28e9df..eec876db 100644
--- a/core/except.h
+++ b/core/except.h
@@ -14,12 +14,12 @@ class base_exception : public std::exception {
protected:
base_exception() = default;
- virtual ~base_exception();
+ ~base_exception() override;
- void setMessage(const char *msg, std::va_list args);
+ auto setMessage(const char *msg, std::va_list args) -> void;
public:
- const char *what() const noexcept override { return mMessage.c_str(); }
+ [[nodiscard]] auto what() const noexcept -> const char* override { return mMessage.c_str(); }
};
} // namespace al