Skip to content

Commit

Permalink
Fix build again
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 13, 2020
1 parent 7100c9d commit b327b67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/core/testqgsmaplayer.cpp
Expand Up @@ -120,7 +120,7 @@ void TestQgsMapLayer::setBlendMode()
mpLayer->setBlendMode( QPainter::CompositionMode_Screen );
// check the signal has been correctly emitted
QCOMPARE( spy.count(), 1 );
QCOMPARE( spy.at( 0 ).at( 0 ).toInt(), QPainter::CompositionMode_Screen );
QCOMPARE( spy.at( 0 ).at( 0 ).toInt(), static_cast< int >( QPainter::CompositionMode_Screen ) );
// check accessor
QCOMPARE( mpLayer->blendMode(), QPainter::CompositionMode_Screen );

Expand All @@ -129,7 +129,7 @@ void TestQgsMapLayer::setBlendMode()

mpLayer->setBlendMode( QPainter::CompositionMode_Darken );
QCOMPARE( spy.count(), 2 );
QCOMPARE( spy.at( 1 ).at( 0 ).toInt(), QPainter::CompositionMode_Darken );
QCOMPARE( spy.at( 1 ).at( 0 ).toInt(), static_cast< int >( QPainter::CompositionMode_Darken ) );
QCOMPARE( mpLayer->blendMode(), QPainter::CompositionMode_Darken );
}

Expand Down

0 comments on commit b327b67

Please sign in to comment.