r24430 by jghali - Code style fixes

scribus-commit scribus-commit at lists.scribus.net
Tue Jan 26 22:37:41 UTC 2021


Author: jghali
Date: Tue Jan 26 22:37:41 2021
New Revision: 24430

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24430
Log:
Code style fixes

Modified:
    trunk/Scribus/scribus/fonts/cff.cpp
    trunk/Scribus/scribus/text/textshaper.cpp
    trunk/Scribus/scribus/util.cpp

Modified: trunk/Scribus/scribus/fonts/cff.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24430&path=/trunk/Scribus/scribus/fonts/cff.cpp
==============================================================================
--- trunk/Scribus/scribus/fonts/cff.cpp	(original)
+++ trunk/Scribus/scribus/fonts/cff.cpp	Tue Jan 26 22:37:41 2021
@@ -1687,7 +1687,6 @@
 		// create new private dict
 		QHash<operator_type, uint> privatePatches;
 		QByteArray privateBytes = result.makeDict(privateDict, m_strings, privatePatches);
-
 		
 		// write new header, name and topdict, remember offset positions for patching
 		QHash<operator_type, uint> patchPositions;

Modified: trunk/Scribus/scribus/text/textshaper.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24430&path=/trunk/Scribus/scribus/text/textshaper.cpp
==============================================================================
--- trunk/Scribus/scribus/text/textshaper.cpp	(original)
+++ trunk/Scribus/scribus/text/textshaper.cpp	Tue Jan 26 22:37:41 2021
@@ -426,7 +426,7 @@
 			const CharStyle& charStyle(m_story.charStyle(firstChar));
 			const StyleFlag& effects = charStyle.effects();
 
-			QString str = m_text.mid(firstChar - fromPos, lastChar-firstChar+1);
+			QString str = m_text.mid(firstChar - fromPos, lastChar - firstChar + 1);
 			GlyphCluster run(&charStyle, flags, firstChar, lastChar, m_story.object(firstChar), result.glyphs().length(), str);
 
 			run.clearFlag(ScLayout_HyphenationPossible);

Modified: trunk/Scribus/scribus/util.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24430&path=/trunk/Scribus/scribus/util.cpp
==============================================================================
--- trunk/Scribus/scribus/util.cpp	(original)
+++ trunk/Scribus/scribus/util.cpp	Tue Jan 26 22:37:41 2021
@@ -305,7 +305,7 @@
 		// Qt4 .cell() added ???
 		out += toHex(QChar(in->at(j)).cell());
 		++i;
-		if ((i>40) && (lang))
+		if ((i > 40) && (lang))
 		{
 			out += '\n';
 			i=0;




More information about the scribus-commit mailing list