Skip to content
Permalink
Browse files

[layout] Check for pointer as bool instead of compare

Travis does not like the second.
  • Loading branch information
elpaso committed Jan 3, 2018
1 parent 57a4005 commit 7062f90b9ff477f167b111860a3ff4aebf492984
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/core/testqgscompositionconverter.cpp
@@ -419,7 +419,7 @@ void TestQgsCompositionConverter::importComposerTemplateScaleBar()
QgsLayoutItemScaleBar *item = items.at( 0 );
QVERIFY( item->isVisible() );

QCOMPARE( item->map(), nullptr );
QVERIFY( ! item->map() );

checkRenderedImage( layout.get(), QTest::currentTestFunction(), 0 );

0 comments on commit 7062f90

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