r24111 by jghali - Fix compiler warning

scribus-commit scribus-commit at lists.scribus.net
Mon Oct 26 21:10:05 UTC 2020


Author: jghali
Date: Mon Oct 26 21:10:04 2020
New Revision: 24111

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24111
Log:
Fix compiler warning

Modified:
    branches/Version14x/Scribus/scribus/scfonts.cpp

Modified: branches/Version14x/Scribus/scribus/scfonts.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24111&path=/branches/Version14x/Scribus/scribus/scfonts.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scfonts.cpp	(original)
+++ branches/Version14x/Scribus/scribus/scfonts.cpp	Mon Oct 26 21:10:04 2020
@@ -673,9 +673,8 @@
 	FcObjectSetDestroy(os);
 	FcPatternDestroy(pat);
 	// Create the Freetype library
-	bool error;
 	FT_Library library = NULL;
-	error = FT_Init_FreeType( &library );
+	FT_Init_FreeType( &library );
 	// Now iterate over the font files and load them
 	int i;
 	for (i = 0; i < fs->nfont; i++) 
@@ -685,7 +684,7 @@
 		{
 			if (showFontInformation)
 				sDebug(QObject::tr("Loading font %1 (found using fontconfig)").arg(QString((char*)file)));
-			error = AddScalableFont(QString((char*)file), library, "");
+			AddScalableFont(QString((char*)file), library, "");
 		}
 		else
 			if (showFontInformation)




More information about the scribus-commit mailing list