From 9a6a7a016258ac215e6c5b968a3cd36d3f2ec389 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 13:46:55 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/src/core/testqgsproject.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/src/core/testqgsproject.cpp b/tests/src/core/testqgsproject.cpp index f4d56a22fce0..b9d1850981a2 100644 --- a/tests/src/core/testqgsproject.cpp +++ b/tests/src/core/testqgsproject.cpp @@ -1132,7 +1132,7 @@ QString getProjectXmlContent( const QString &projectPath ) return file.readAll(); } -QString getLayerSourceFromProjectXml(const QString &projectPath, const QString &layerName) +QString getLayerSourceFromProjectXml( const QString &projectPath, const QString &layerName ) { // Get XML content const QString xmlContent = getProjectXmlContent( projectPath ); @@ -1245,7 +1245,7 @@ void TestQgsProject::testSymlinks2LayerFolder() // ++Verify paths after re-opening++ // XML datasource is "./data/points.shp" NOT "../../../data/points.shp" const QString layerSource = getLayerSourceFromProjectXml( projectPath, QStringLiteral( "Points" ) ); - QCOMPARE( layerSource, QStringLiteral( "./data/points.shp") ); + QCOMPARE( layerSource, QStringLiteral( "./data/points.shp" ) ); // Absolute layer source still in projectDir project = std::make_unique(); @@ -1425,14 +1425,14 @@ void TestQgsProject::testSymlinks5ProjectFile() // ++Verify that moved project behaves well++ // Move project file and create symlink QVERIFY( QFile::rename( originalPath, symlinkprojDir + "/project.qgs" ) ); - QVERIFY( QFile::rename( originalAttachPath , symlinkprojDir + "/project_attachments.zip" ) ); + QVERIFY( QFile::rename( originalAttachPath, symlinkprojDir + "/project_attachments.zip" ) ); QVERIFY( QFile::link( symlinkprojDir + "/project.qgs", originalPath ) ); QVERIFY( QFile::link( symlinkprojDir + "/project_attachments.zip", originalAttachPath ) ); // Open symlinked project and verify paths project = std::make_unique(); project->read( originalPath ); - QgsVectorLayer* loadedLayer = qobject_cast( project->mapLayersByName( QStringLiteral( "Points" ) ).at( 0 ) ); + QgsVectorLayer *loadedLayer = qobject_cast( project->mapLayersByName( QStringLiteral( "Points" ) ).at( 0 ) ); QCOMPARE( loadedLayer->source(), projectDir + "/points.shp" ); // Save and verify XML content