r24219 by jghali - Code style fixes

scribus-commit scribus-commit at lists.scribus.net
Tue Nov 10 21:26:19 UTC 2020


Author: jghali
Date: Tue Nov 10 21:26:19 2020
New Revision: 24219

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

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/cmdutil.cpp
    trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdutil.cpp

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdutil.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24219&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdutil.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdutil.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdutil.cpp	Tue Nov 10 21:26:19 2020
@@ -194,8 +194,10 @@
 		// Search for the named item
 		PageItem* item = nullptr;
 		for (int j = 0; j < ScCore->primaryMainWindow()->doc->Items->count(); j++)
+		{
 			if (*it == ScCore->primaryMainWindow()->doc->Items->at(j)->itemName())
 				item = ScCore->primaryMainWindow()->doc->Items->at(j);
+		}
 		if (!item)
 			return false;
 		// and select it

Modified: trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdutil.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24219&path=/trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdutil.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdutil.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdutil.cpp	Tue Nov 10 21:26:19 2020
@@ -194,8 +194,10 @@
 		// Search for the named item
 		PageItem* item = nullptr;
 		for (int j = 0; j < ScCore->primaryMainWindow()->doc->Items->count(); j++)
+		{
 			if (*it == ScCore->primaryMainWindow()->doc->Items->at(j)->itemName())
 				item = ScCore->primaryMainWindow()->doc->Items->at(j);
+		}
 		if (!item)
 			return false;
 		// and select it




More information about the scribus-commit mailing list