]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/exceptions.h
Fully remove bitmap font support (#11863)
[dragonfireclient.git] / src / exceptions.h
index 07fecdaf7da9f2fa9accc22310c8514501a962ce..a558adc5d13dc55e855913a31b40fe92f4134925 100644 (file)
@@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef EXCEPTIONS_HEADER
-#define EXCEPTIONS_HEADER
+#pragma once
 
 #include <exception>
 #include <string>
@@ -28,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();
@@ -72,11 +72,6 @@ class SettingNotFoundException : public BaseException {
        SettingNotFoundException(const std::string &s): BaseException(s) {}
 };
 
-class InvalidFilenameException : public BaseException {
-public:
-       InvalidFilenameException(const std::string &s): BaseException(s) {}
-};
-
 class ItemNotFoundException : public BaseException {
 public:
        ItemNotFoundException(const std::string &s): BaseException(s) {}
@@ -129,6 +124,3 @@ class InvalidPositionException : public BaseException
                BaseException(s)
        {}
 };
-
-#endif
-