[companion] Fix a few reasonable warnings brought up by MSVC /W3. (#4206)

This commit is contained in:
Max Paperno
2017-01-07 08:33:56 +01:00
committed by Bertrand Songis
parent 51f186597c
commit 52b68c9ea2
5 changed files with 9 additions and 11 deletions
+3 -4
View File
@@ -864,7 +864,7 @@ void startSimulation(QWidget * parent, RadioData & radioData, int modelIdx)
}
dialog->exec();
delete dialog;
dialog->deleteLater();
delete simuData;
#if defined(WIN32) && defined(WIN_USE_CONSOLE_STDIO)
FreeConsole();
@@ -941,10 +941,9 @@ QString index2version(int index)
}
}
int qunlink(const QString & fileName)
bool qunlink(const QString & fileName)
{
QByteArray ba = fileName.toLatin1();
return unlink(ba.constData());
return QFile::remove(fileName);
}
QString generateProcessUniqueTempFileName(const QString & fileName)