r23529 by jghali - Code style fixes

scribus-commit scribus-commit at lists.scribus.net
Sun Mar 22 20:24:00 UTC 2020


Author: jghali
Date: Sun Mar 22 20:24:00 2020
New Revision: 23529

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

Modified:
    trunk/Scribus/scribus/text/storytext.cpp

Modified: trunk/Scribus/scribus/text/storytext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23529&path=/trunk/Scribus/scribus/text/storytext.cpp
==============================================================================
--- trunk/Scribus/scribus/text/storytext.cpp	(original)
+++ trunk/Scribus/scribus/text/storytext.cpp	Sun Mar 22 20:24:00 2020
@@ -1725,7 +1725,7 @@
 int StoryText::nextChar(int pos)
 {
 	if (pos < length())
-		return pos+1;
+		return pos + 1;
 	return length();
 }
 
@@ -1826,14 +1826,14 @@
 int StoryText::nextParagraph(int pos)
 {
 	int len = length();
-	pos = qMin(len, pos+1);
+	pos = qMin(len, pos + 1);
 	while (pos < len && text(pos) != SpecialChars::PARSEP)
 		++pos;
 	return pos;
 }
 int StoryText::prevParagraph(int pos)
 {
-	pos = qMax(0, pos-1);
+	pos = qMax(0, pos - 1);
 	while (pos > 0 && text(pos) != SpecialChars::PARSEP)
 		--pos;
 	return pos;




More information about the scribus-commit mailing list