tst_QSaveFile: mark a QString const
To ensure we don't overwrite it in this quite long function. Amends 7e5e7eeaa1418d959906cdf9d717c984c9fc7a7e. Pick-to: 6.8 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>
This commit is contained in:
parent
ab9021e2d6
commit
b2dad9724d
@ -444,7 +444,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