Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix build on qt6
  • Loading branch information
nyalldawson committed May 17, 2023
1 parent 74d0aaf commit 0ab8891
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/src/core/testqgscompositionconverter.cpp
Expand Up @@ -726,7 +726,7 @@ QDomElement TestQgsCompositionConverter::loadComposer( const QString &name )
QFile file( templatePath );
bool res = file.open( QIODevice::ReadOnly );
Q_ASSERT( res );
res = doc.setContent( &file );
res = static_cast< bool >( doc.setContent( &file ) );
Q_ASSERT( res );
file.close();
QDomNodeList nodes( doc.elementsByTagName( QStringLiteral( "Composer" ) ) );
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgsproject.cpp
Expand Up @@ -214,7 +214,7 @@ static QHash<QString, QString> _parseSvgPathsForLayers( const QString &projectFi
QFile projectFile( projectFilename );
bool res = projectFile.open( QIODevice::ReadOnly );
Q_ASSERT( res );
res = doc.setContent( &projectFile );
res = static_cast< bool >( doc.setContent( &projectFile ) );
Q_ASSERT( res );
projectFile.close();

Expand Down

0 comments on commit 0ab8891

Please sign in to comment.