r23439 by jghali - Code style fixes
scribus-commit
scribus-commit at lists.scribus.net
Thu Jan 9 18:40:54 UTC 2020
Author: jghali
Date: Thu Jan 9 18:40:54 2020
New Revision: 23439
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23439
Log:
Code style fixes
Modified:
trunk/Scribus/scribus/scribusdoc.cpp
Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23439&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp (original)
+++ trunk/Scribus/scribus/scribusdoc.cpp Thu Jan 9 18:40:54 2020
@@ -15228,15 +15228,15 @@
if (itemSelection->isEmpty())
return;
- uint docSelectionCount = itemSelection->count();
+ int docSelectionCount = itemSelection->count();
PageItem *currItem;
UndoTransaction activeTransaction;
if (UndoManager::undoEnabled())
activeTransaction = m_undoManager->beginTransaction(Um::Selection, Um::IGroup, Um::Ungroup, "", Um::IGroup);
QList<PageItem*> toDelete;
- for (uint a=0; a < docSelectionCount; ++a)
- {
- currItem = itemSelection->itemAt(a);
+ for (int i = 0; i < docSelectionCount; ++i)
+ {
+ currItem = itemSelection->itemAt(i);
if (currItem->isGroup())
toDelete.append(currItem);
}
@@ -15245,9 +15245,9 @@
setLoading(true);
itemSelection->delaySignalsOn();
dontResize = true;
- for (int b = 0; b < toDelete.count(); b++)
- {
- currItem = toDelete.at(b);
+ for (int i = 0; i < toDelete.count(); i++)
+ {
+ currItem = toDelete.at(i);
QList<PageItem*> *list = Items;
list = parentGroup(currItem, Items);
int d = list->indexOf(currItem);
@@ -15255,7 +15255,7 @@
list->removeAt(d);
itemSelection->removeItem(currItem);
int gcount = currItem->groupItemList.count();
- for (int c = 0; c < gcount; c++)
+ for (int j = 0; j < gcount; j++)
{
PageItem* gItem = currItem->groupItemList.last();
removeFromGroup(gItem);
More information about the scribus-commit
mailing list