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
|
@ -171,7 +171,7 @@ void Config::accept()
|
|||
errormsg += "<li>" + tr("No mountpoint given") + "</li>";
|
||||
error = true;
|
||||
}
|
||||
else if(!QFileInfo(mountpoint).exists()) {
|
||||
else if(!QFileInfo::exists(mountpoint)) {
|
||||
errormsg += "<li>" + tr("Mountpoint does not exist") + "</li>";
|
||||
error = true;
|
||||
}
|
||||
|
|
|
@ -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…
Reference in a new issue