1
0
Fork 0
mirror of https://github.com/EdgeTX/edgetx.git synced 2025-07-23 16:25:12 +03:00

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

This commit is contained in:
Max Paperno 2017-01-07 02:33:57 -05:00 committed by Bertrand Songis
parent 51f186597c
commit 52b68c9ea2
5 changed files with 9 additions and 11 deletions

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)