From b327b67926ffbf67a22c4501e56dc3f81361f6de Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Fri, 13 Nov 2020 19:13:43 +1000 Subject: [PATCH] Fix build again --- tests/src/core/testqgsmaplayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/core/testqgsmaplayer.cpp b/tests/src/core/testqgsmaplayer.cpp index 5e1e9ac42cd3..7833b1f353ca 100644 --- a/tests/src/core/testqgsmaplayer.cpp +++ b/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 ); }