~mapeditor.org/tiled/master

Viewing all changes in revision 2853.

  • Committer: Thorbjørn Lindeijer
  • Date: 2019-01-29 20:49:16 UTC
  • Revision ID: git-v1:6c518c140238fa4fe2458e3c8b571e9a310d8ad4
Fixed compile of autotest when using clang

Clang is being a little bit more strict here than GCC it seems:

test_mapreader.cpp:27:5: error: no viable conversion from 'std::unique_ptr<Tiled::Map, std::default_delete<Tiled::Map> >' to 'bool'
    QVERIFY(map);
    ^~~~~~~~~~~~
/opt/qt56/include/QtTest/qtestcase.h:60:25: note: expanded from macro 'QVERIFY'
    if (!QTest::qVerify((statement), #statement, "", __FILE__, __LINE__))\
                        ^~~~~~~~~~~

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: