Commit 57123478 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

don't unnecessarily use QFileInfo::filePath()

just directly use the filename we constructed it from.

Change-Id: Ia428a2cb4b192fea6bde62dfbf35361bcfc4b21e
Reviewed-by: default avatarDaniel Teske <>
parent ca291fbc
...@@ -303,12 +303,12 @@ QMakeEvaluator::writeFile(const QString &ctx, const QString &fn, QIODevice::Open ...@@ -303,12 +303,12 @@ QMakeEvaluator::writeFile(const QString &ctx, const QString &fn, QIODevice::Open
return ReturnFalse; return ReturnFalse;
} }
QString errStr; QString errStr;
if (!doWriteFile(qfi.filePath(), mode, contents, &errStr)) { if (!doWriteFile(fn, mode, contents, &errStr)) {
evalError(fL1S("Cannot write %1file %2: %3.") evalError(fL1S("Cannot write %1file %2: %3.")
.arg(ctx, QDir::toNativeSeparators(qfi.filePath()), errStr)); .arg(ctx, QDir::toNativeSeparators(fn), errStr));
return ReturnFalse; return ReturnFalse;
} }
m_parser->discardFileFromCache(qfi.filePath()); m_parser->discardFileFromCache(fn);
return ReturnTrue; return ReturnTrue;
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment