forked from len0rd/rockbox
rbutil: Avoid creating temporary object.
There's a static function for that. Change-Id: I5d07d73368f20167bb45f5b0df510be6d4227109
This commit is contained in:
parent
fb6840e572
commit
f29b81d521
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue