tst_QSaveFile: mark a QString const
To ensure we don't overwrite it in this quite long function. Amends 7e5e7eeaa1418d959906cdf9d717c984c9fc7a7e. Pick-to: 6.5 5.15 Change-Id: Ie5f81b50d2d66ba9e064810f8cbc1a7af298cc2b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 67a906b5564a1ccf03e547aa78fc6fd910d9cd15) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit b2dad9724d5c92582851e56ba73383644ea8b32b)
This commit is contained in:
parent
f3d2c6879d
commit
6f38ff4ba5
@ -416,7 +416,7 @@ void tst_QSaveFile::symlink()
|
||||
|
||||
QVERIFY(QFile::link(targetFile, linkFile));
|
||||
|
||||
QString canonical = QFileInfo(linkFile).canonicalFilePath();
|
||||
const QString canonical = QFileInfo(linkFile).canonicalFilePath();
|
||||
QCOMPARE(canonical, QFileInfo(targetFile).canonicalFilePath());
|
||||
|
||||
// Try saving into it
|
||||
|
Loading…
x
Reference in New Issue
Block a user