[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2025-01-22 11:04:25 +00:00 committed by Mathieu Pellerin
parent a84383379b
commit c71a45a41d

View File

@ -727,14 +727,14 @@ void TestQgsRasterCalculator::testOutputCrsFromRasterEntries()
QVector<QgsRasterCalculatorEntry> entries; QVector<QgsRasterCalculatorEntry> entries;
entries << entry1; entries << entry1;
QgsRectangle extent( 783235, 3348110, 783350, 3347960 ); QgsRectangle extent( 783235, 3348110, 783350, 3347960 );
QTemporaryFile tmpFile; QTemporaryFile tmpFile;
tmpFile.open(); // fileName is not available until open tmpFile.open(); // fileName is not available until open
QString tmpName = tmpFile.fileName(); QString tmpName = tmpFile.fileName();
tmpFile.close(); tmpFile.close();
QgsRasterCalculator rc( QStringLiteral( "\"landsat@0\"" ), tmpName, QStringLiteral( "GTiff" ), extent, 2, 3, entries, QgsProject::instance()->transformContext() ); QgsRasterCalculator rc( QStringLiteral( "\"landsat@0\"" ), tmpName, QStringLiteral( "GTiff" ), extent, 2, 3, entries, QgsProject::instance()->transformContext() );
QCOMPARE( static_cast<int>( rc.processCalculation() ), 0 ); QCOMPARE( static_cast<int>( rc.processCalculation() ), 0 );
//open output file and check results //open output file and check results