Skip to content

Commit

Permalink
[layout] Check for pointer as bool instead of compare
Browse files Browse the repository at this point in the history
Travis does not like the second.
  • Loading branch information
elpaso committed Jan 9, 2018
1 parent 57a4005 commit 7062f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/core/testqgscompositionconverter.cpp
Expand Up @@ -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 );

Expand Down

0 comments on commit 7062f90

Please sign in to comment.