r24073 by craig - Change count and size to isEmpty

scribus-commit scribus-commit at lists.scribus.net
Fri Oct 9 22:15:51 UTC 2020


Author: craig
Date: Fri Oct  9 22:15:51 2020
New Revision: 24073

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24073
Log:
Change count and size to isEmpty

Modified:
    trunk/Scribus/scribus/scimage.cpp
    trunk/Scribus/scribus/ui/storyeditor.cpp

Modified: trunk/Scribus/scribus/scimage.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24073&path=/trunk/Scribus/scribus/scimage.cpp
==============================================================================
--- trunk/Scribus/scribus/scimage.cpp	(original)
+++ trunk/Scribus/scribus/scimage.cpp	Fri Oct  9 22:15:51 2020
@@ -2171,7 +2171,7 @@
 	{
 		pDataLoader->loadEmbeddedProfile(fn, page);
 		QByteArray embeddedProfile = pDataLoader->embeddedProfile();
-		if	(embeddedProfile.size())
+		if	(!embeddedProfile.isEmpty())
 		{
 			prof = ScCore->defaultEngine.openProfileFromMem(embeddedProfile);
 			if (prof)

Modified: trunk/Scribus/scribus/ui/storyeditor.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24073&path=/trunk/Scribus/scribus/ui/storyeditor.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/storyeditor.cpp	(original)
+++ trunk/Scribus/scribus/ui/storyeditor.cpp	Fri Oct  9 22:15:51 2020
@@ -704,7 +704,7 @@
 	if (currItem->itemText.cursorPosition() < SelCharStart)
 		SelCharStart = currItem->itemText.cursorPosition();
 	SelCharStart -= currItem->itemText.startOfParagraph(newSelParaStart);
-	if (SelStack.count())
+	if (!SelStack.isEmpty())
 		std::get<1>(SelStack.top()) = -1;
 	//qDebug() << "SE::loadItemText: cursor";
 //	setCursorPosition(SelParaStart, SelCharStart);
@@ -903,7 +903,7 @@
 void SEditor::updateSel(const ParagraphStyle& newStyle)
 {
 	int PStart, PEnd, SelStart, SelEnd, start;
-	if (SelStack.count())
+	if (!SelStack.isEmpty())
 	{
 		QTextCursor tc(textCursor());
 		int selFirst, selSecond, selThird;
@@ -928,7 +928,7 @@
 
 void SEditor::updateSel(const CharStyle& newStyle)
 {
-	if (SelStack.count())
+	if (!SelStack.isEmpty())
 	{
 		QTextCursor tc(textCursor());
 		int selFirst, selSecond, selThird;




More information about the scribus-commit mailing list