Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Apply suggestions
  • Loading branch information
pblottiere committed Jun 17, 2021
1 parent 2a2d925 commit f771dee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/app/testqgsmaptoolidentifyaction.cpp
Expand Up @@ -576,7 +576,7 @@ void TestQgsMapToolIdentifyAction::identifyRasterTemporal()
{
//create a temporary layer
QString raster = QStringLiteral( TEST_DATA_DIR ) + "/raster/test.asc";
std::unique_ptr< QgsRasterLayer> tempLayer( new QgsRasterLayer( raster ) );
std::unique_ptr< QgsRasterLayer> tempLayer = std::make_unique< QgsRasterLayer >( raster );
QVERIFY( tempLayer->isValid() );

// activate temporal properties
Expand All @@ -591,7 +591,7 @@ void TestQgsMapToolIdentifyAction::identifyRasterTemporal()
// invalid temporal range on canvas
canvas->setTemporalRange( QgsDateTimeRange( QDateTime( QDate( 1950, 01, 01 ), QTime( 0, 0, 0 ), Qt::UTC ),
QDateTime( QDate( 1950, 01, 01 ), QTime( 1, 0, 0 ), Qt::UTC ) ) );
QCOMPARE( testIdentifyRaster( tempLayer.get(), 0.5, 0.5 ), QString( "" ) );
QCOMPARE( testIdentifyRaster( tempLayer.get(), 0.5, 0.5 ), QString( ) );

// valid temporal range on canvas
canvas->setTemporalRange( QgsDateTimeRange( QDateTime( QDate( 1950, 01, 01 ), QTime( 0, 0, 0 ), Qt::UTC ),
Expand Down

0 comments on commit f771dee

Please sign in to comment.