diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-08 11:38:16 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-08 11:38:16 +0100 |
commit | 067247360d68042ad5466b802399338c14d7dc58 (patch) | |
tree | 86a2eca9ff8c25f9d5efcccc9b41f9974bbff33f /src | |
parent | 7b63eb310dfd299b6d26169cb0981c9bfaf160b6 (diff) |
fix code standard issue in Exception
Diffstat (limited to 'src')
-rw-r--r-- | src/crepe/Exception.cpp | 2 | ||||
-rw-r--r-- | src/crepe/Exception.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/Exception.cpp b/src/crepe/Exception.cpp index dab8f2e..bfdbcdd 100644 --- a/src/crepe/Exception.cpp +++ b/src/crepe/Exception.cpp @@ -6,7 +6,7 @@ using namespace std; using namespace crepe; -const char * Exception::what() { return error.c_str(); } +const char * Exception::what() const noexcept { return error.c_str(); } Exception::Exception(const char * fmt, ...) { va_list args; diff --git a/src/crepe/Exception.h b/src/crepe/Exception.h index 6473043..80af068 100644 --- a/src/crepe/Exception.h +++ b/src/crepe/Exception.h @@ -11,7 +11,7 @@ public: //! printf Exception(const char * fmt, ...); //! Get formatted error message - const char * what(); + const char * what() const noexcept; protected: Exception() = default; |