]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/file.h
Mark constructors and destructors as default where appropriate
[libs/core.git] / source / io / file.h
index aeac6c8d265556974ddfee94febdb8ea5fd131b7..36f37706a8432b35aed12f8772b9bd3958c7a78b 100644 (file)
@@ -15,14 +15,14 @@ class file_not_found: public std::runtime_error
 {
 public:
        file_not_found(const std::string &fn): std::runtime_error(fn) { }
-       ~file_not_found() throw() { }
+       virtual ~file_not_found() throw() = default;
 };
 
 class file_already_exists: public std::runtime_error
 {
 public:
        file_already_exists(const std::string &fn): std::runtime_error(fn) { }
-       ~file_already_exists() throw() { }
+       virtual ~file_already_exists() throw() = default;
 };