summaryrefslogtreecommitdiffstats
path: root/include/raul/Exception.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-06-29 09:45:46 -0400
committerDavid Robillard <d@drobilla.net>2022-07-20 16:24:23 -0400
commitd855f8f67a4588f44ade0ed19744c99bfe81e76c (patch)
tree83128be6067bdd21a4c6a9440e15f387e20e9025 /include/raul/Exception.hpp
parentcf72f2855fccaf1c579388bcdba2a219a9983d96 (diff)
downloadraul-d855f8f67a4588f44ade0ed19744c99bfe81e76c.tar.gz
raul-d855f8f67a4588f44ade0ed19744c99bfe81e76c.tar.bz2
raul-d855f8f67a4588f44ade0ed19744c99bfe81e76c.zip
Use nodiscard attribute
Diffstat (limited to 'include/raul/Exception.hpp')
-rw-r--r--include/raul/Exception.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/raul/Exception.hpp b/include/raul/Exception.hpp
index ef5b764..74f694a 100644
--- a/include/raul/Exception.hpp
+++ b/include/raul/Exception.hpp
@@ -19,7 +19,10 @@ class Exception : public std::exception
{
public:
// NOLINTNEXTLINE(modernize-use-override, hicpp-use-override)
- const char* what() const noexcept final override { return _what.c_str(); }
+ [[nodiscard]] const char* what() const noexcept final override
+ {
+ return _what.c_str();
+ }
protected:
explicit Exception(std::string what)