aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-09-08 16:15:18 +0200
committerMartin Ridgers <[email protected]>2021-09-14 14:29:26 +0200
commit1d72428dddd503d7068ac0001235f59c18255648 (patch)
tree57d5687ffadef000daaf16685fe835c9203e231e /zencore/include
parentAdded ZEN_ARCH_* defines for x64 and ARM64 (diff)
downloadzen-1d72428dddd503d7068ac0001235f59c18255648.tar.xz
zen-1d72428dddd503d7068ac0001235f59c18255648.zip
std::exception::what() overrides were missing noexcept qualifier
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/httpserver.h2
-rw-r--r--zencore/include/zencore/zencore.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/zencore/include/zencore/httpserver.h b/zencore/include/zencore/httpserver.h
index 493ea63e9..19ac8732e 100644
--- a/zencore/include/zencore/httpserver.h
+++ b/zencore/include/zencore/httpserver.h
@@ -263,7 +263,7 @@ class HttpServerException : public std::exception
public:
HttpServerException(const char* Message, uint32_t Error);
- virtual const char* what() const override;
+ virtual const char* what() const noexcept override;
private:
uint32_t m_ErrorCode;
diff --git a/zencore/include/zencore/zencore.h b/zencore/include/zencore/zencore.h
index 4f7f2edc1..87e09d014 100644
--- a/zencore/include/zencore/zencore.h
+++ b/zencore/include/zencore/zencore.h
@@ -99,7 +99,7 @@ public:
AssertException(const char* Msg);
~AssertException();
- [[nodiscard]] virtual char const* what() const override { return m_Msg.c_str(); }
+ [[nodiscard]] virtual char const* what() const noexcept override { return m_Msg.c_str(); }
private:
std::string m_Msg;