1
0
Fork 0
forked from len0rd/rockbox

rbutil: Avoid creating temporary object.

There's a static function for that.

Change-Id: I5d07d73368f20167bb45f5b0df510be6d4227109
This commit is contained in:
Dominik Riebeling 2020-11-19 20:52:09 +01:00
parent fb6840e572
commit f29b81d521
2 changed files with 2 additions and 2 deletions

View file

@ -120,7 +120,7 @@ void SysTrace::savePreviousTrace(void)
void SysTrace::rotateTrace(void)
{
QString f = QDir::tempPath() + "/rbutil-trace.log.1";
if(QFileInfo(f).exists()) {
if(QFileInfo::exists(f)) {
QFile::remove(f);
}
QFile::rename(QDir::tempPath() + "/rbutil-trace.log", f);