r23127 by jghali - #15767: a few warnings about unused variables

scribus-commit scribus-commit at lists.scribus.net
Mon Aug 12 09:51:27 UTC 2019


Author: jghali
Date: Mon Aug 12 09:51:27 2019
New Revision: 23127

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23127
Log:
#15767: a few warnings about unused variables

Modified:
    trunk/Scribus/scribus/canvasmode_normal.cpp
    trunk/Scribus/scribus/pslib.cpp
    trunk/Scribus/scribus/ui/propertywidget_pareffect.cpp

Modified: trunk/Scribus/scribus/canvasmode_normal.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23127&path=/trunk/Scribus/scribus/canvasmode_normal.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_normal.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode_normal.cpp	Mon Aug 12 09:51:27 2019
@@ -1166,14 +1166,12 @@
 				PageItem* docItem = m_doc->Items->at(a);
 				if ((m_doc->masterPageMode()) && (docItem->OnMasterPage != m_doc->currentPage()->pageName()))
 					continue;
-				QRect  apr2 = m_canvas->canvasToLocal( docItem->getCurrentBoundingRect(docItem->lineWidth()) );
 				if (((docItem->m_layerID == m_doc->activeLayer()) || (m_doc->layerSelectable(docItem->m_layerID))) && (!m_doc->layerLocked(docItem->m_layerID)))
 				{
 					// get current item rect/bounding box
 					QRect apr2 = m_canvas->canvasToLocal( docItem->getCurrentBoundingRect(docItem->lineWidth()) );
 
 					bool is_selected = docItem->isSelected();
-					bool redrawSelection = false;
 
 					// alt selection
 					bool select = altPressed ? localSele.intersects(apr2) :

Modified: trunk/Scribus/scribus/pslib.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23127&path=/trunk/Scribus/scribus/pslib.cpp
==============================================================================
--- trunk/Scribus/scribus/pslib.cpp	(original)
+++ trunk/Scribus/scribus/pslib.cpp	Mon Aug 12 09:51:27 2019
@@ -1533,7 +1533,6 @@
 	bool farb = options.useColor;
 	bool Hm = options.mirrorH;
 	bool Vm = options.mirrorV;
-	bool doDev = options.setDevParam;
 	bool doClip = options.doClip;
 	int sepac;
 	int pagemult;

Modified: trunk/Scribus/scribus/ui/propertywidget_pareffect.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23127&path=/trunk/Scribus/scribus/ui/propertywidget_pareffect.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertywidget_pareffect.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertywidget_pareffect.cpp	Mon Aug 12 09:51:27 2019
@@ -265,7 +265,6 @@
 		enablePE = false;
 
 	QString numName = numComboBox->currentText();
-	int nFormat = 0;
 	dropCapLines->setValue(newPStyle.dropCapLines());
 	bulletStrEdit->setEditText(newPStyle.bulletStr());
 	numName = newPStyle.numName();




More information about the scribus-commit mailing list