Skip to content

Commit

Permalink
Silence a couple of buikd warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jul 17, 2021
1 parent 56fa230 commit 1be1c3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/project/qgsproject.cpp
Expand Up @@ -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" ) );
Expand Down
3 changes: 1 addition & 2 deletions src/core/qgsfontutils.cpp
Expand Up @@ -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
{
Expand Down

0 comments on commit 1be1c3d

Please sign in to comment.