Skip to content
Permalink
Browse files

Fix build again

  • Loading branch information
nyalldawson committed Nov 13, 2020
1 parent 7100c9d commit b327b67926ffbf67a22c4501e56dc3f81361f6de
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/src/core/testqgsmaplayer.cpp
@@ -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 );

@@ -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 );
}

0 comments on commit b327b67

Please sign in to comment.
You can’t perform that action at this time.