Add assert to make sure the temp file could be opened successfully.

This commit is contained in:
Felix Geyer committed 2012-07-03 12:39:03 +02:00
1 parent 40f194fe4b
commit d826ae5daf
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -108,6 +108,8 @@ void Config::createTempFileInstance()
{
Q_ASSERT(!m_instance);
QTemporaryFile* tmpFile = new QTemporaryFile(qApp);
tmpFile->open();
bool openResult = tmpFile->open();
Q_ASSERT(openResult);
Q_UNUSED(openResult);
m_instance = new Config(tmpFile->fileName(), tmpFile);
}