Skip to content
Permalink
Browse files
Merge pull request #44204 from nirvn/qt6_2
[qt6] Silence a couple of build warnings
  • Loading branch information
nirvn committed Jul 17, 2021
2 parents 56fa230 + 1be1c3d commit 81e412c5a7f3ca4e468eecdc28684f7d92a06947
Showing with 2 additions and 3 deletions.
  1. +1 −1 src/core/project/qgsproject.cpp
  2. +1 −2 src/core/qgsfontutils.cpp
@@ -1359,7 +1359,7 @@ bool QgsProject::readProjectFile( const QString &filename, QgsProject::ReadFlags
if ( QFile( QStringLiteral( "%1/%2.qm" ).arg( QFileInfo( projectFile.fileName() ).absolutePath(), localeFileName ) ).exists() )
{
mTranslator.reset( new QTranslator() );
mTranslator->load( localeFileName, QFileInfo( projectFile.fileName() ).absolutePath() );
( void )mTranslator->load( localeFileName, QFileInfo( projectFile.fileName() ).absolutePath() );
}

profile.switchTask( tr( "Reading project file" ) );
@@ -263,8 +263,7 @@ bool QgsFontUtils::loadStandardTestFonts( const QStringList &loadstyles )
fontsLoaded = ( fontsLoaded || loaded );
QgsDebugMsgLevel( QStringLiteral( "Test font '%1 %2' %3 from filesystem [%4]" )
.arg( fontFamily, fontstyle, loaded ? "loaded" : "FAILED to load", fontPath ), 2 );
QFontDatabase db;
QgsDebugMsgLevel( QStringLiteral( "font families in %1: %2" ).arg( fontID ).arg( db.applicationFontFamilies( fontID ).join( "," ) ), 2 );
QgsDebugMsgLevel( QStringLiteral( "font families in %1: %2" ).arg( fontID ).arg( QFontDatabase().applicationFontFamilies( fontID ).join( "," ) ), 2 );
}
else
{

0 comments on commit 81e412c

Please sign in to comment.