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:
parent
51f186597c
commit
52b68c9ea2
5 changed files with 9 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue