diff --git a/src/blackmisc/atomicfile.h b/src/blackmisc/atomicfile.h index c83cd3502..f9771f9cb 100644 --- a/src/blackmisc/atomicfile.h +++ b/src/blackmisc/atomicfile.h @@ -35,7 +35,7 @@ namespace BlackMisc CAtomicFile(const QString &filename) : QFile(filename) {} //! \copydoc QFile::~QFile - ~CAtomicFile() { if (! std::uncaught_exception()) { close(); } } + ~CAtomicFile() { 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.