X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fexceptions.h;h=c54307653b87b3575a09878ce59893d26ab4a544;hb=707c8c1e95d8db2d84909e7957b4dc9138e05599;hp=a8a7db74c72f9f16614d26548280cc7f01253aee;hpb=921151d97a2fb2238ab514324fb95e2732248b96;p=minetest.git diff --git a/src/exceptions.h b/src/exceptions.h index a8a7db74c..c54307653 100644 --- a/src/exceptions.h +++ b/src/exceptions.h @@ -27,7 +27,8 @@ class BaseException : public std::exception { public: BaseException(const std::string &s) throw(): m_s(s) {} - ~BaseException() throw() {} + ~BaseException() throw() = default; + virtual const char * what() const throw() { return m_s.c_str();