Use override for destructors

This commit is contained in:
Roland Winklmeier
2018-08-24 15:23:49 +02:00
parent 9b3b645c12
commit a60ee4a7dd
54 changed files with 54 additions and 54 deletions

View File

@@ -37,7 +37,7 @@ namespace BlackMisc
CAtomicFile(const QString &filename) : QFile(filename) {}
//! \copydoc QFile::~QFile
virtual ~CAtomicFile() { if (std::uncaught_exception()) { QFile::close(); } }
virtual ~CAtomicFile() override { if (std::uncaught_exception()) { QFile::close(); } }
//! \copydoc QFile::open
//! Just before opening the file, the filename is changed so we actually write to a temporary file.