r23239 by jghali - Code style fixes

scribus-commit scribus-commit at lists.scribus.net
Mon Oct 7 00:09:02 UTC 2019


Author: jghali
Date: Mon Oct  7 00:09:02 2019
New Revision: 23239

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

Modified:
    trunk/Scribus/scribus/scpage.cpp

Modified: trunk/Scribus/scribus/scpage.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23239&path=/trunk/Scribus/scribus/scpage.cpp
==============================================================================
--- trunk/Scribus/scribus/scpage.cpp	(original)
+++ trunk/Scribus/scribus/scpage.cpp	Mon Oct  7 00:09:02 2019
@@ -332,7 +332,7 @@
 		return;
 	int stateCode = state->transactionCode;
 	PageItem *ite = state->getItem();
-	bool oldMPMode=m_Doc->masterPageMode();
+	bool oldMPMode = m_Doc->masterPageMode();
 	m_Doc->setMasterPageMode(!ite->OnMasterPage.isEmpty());
 	if (m_Doc->inAnEditMode())
 		m_Doc->view()->requestMode(modeNormal);
@@ -419,9 +419,9 @@
 	if (!state)
 		return;
 
-	PageItem *oldItem=state->getItem().first;
-	PageItem *newItem=state->getItem().second;
-	bool oldMPMode=m_Doc->masterPageMode();
+	PageItem *oldItem = state->getItem().first;
+	PageItem *newItem = state->getItem().second;
+	bool oldMPMode = m_Doc->masterPageMode();
 	m_Doc->setMasterPageMode(!oldItem->OnMasterPage.isEmpty());
 	if (isUndo)
 	{
@@ -442,10 +442,10 @@
 	if (!state)
 		return;
 
-	PageItem *oldItem=state->getItem().first;
-	PageItem *newItem=state->getItem().second;
-	QString patternName=state->getDescription();
-	bool oldMPMode=m_Doc->masterPageMode();
+	PageItem *oldItem = state->getItem().first;
+	PageItem *newItem = state->getItem().second;
+	QString patternName = state->getDescription();
+	bool oldMPMode = m_Doc->masterPageMode();
 	m_Doc->setMasterPageMode(!oldItem->OnMasterPage.isEmpty());
 	if (isUndo)
 	{
@@ -504,7 +504,7 @@
 
 void ScPage::copySizingProperties(ScPage* sourcePage, const MarginStruct& pageMargins)
 {
-	if (sourcePage==nullptr)
+	if (sourcePage == nullptr)
 		return;
 	m_pageSize = sourcePage->m_pageSize;
 	m_orientation = sourcePage->m_orientation;




More information about the scribus-commit mailing list