r23296 by jghali - Fix unused variable warning

scribus-commit scribus-commit at lists.scribus.net
Tue Oct 29 05:40:27 UTC 2019


Author: jghali
Date: Tue Oct 29 05:40:26 2019
New Revision: 23296

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23296
Log:
Fix unused variable warning

Modified:
    trunk/Scribus/scribus/ui/propertiespalette.cpp

Modified: trunk/Scribus/scribus/ui/propertiespalette.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23296&path=/trunk/Scribus/scribus/ui/propertiespalette.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertiespalette.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertiespalette.cpp	Tue Oct 29 05:40:26 2019
@@ -291,13 +291,8 @@
 
 PageItem* PropertiesPalette::currentItemFromSelection()
 {
-	PageItem *currentItem = nullptr;
-
 	if (m_doc && m_doc->m_Selection->count() > 0)
-	{
-			return m_doc->m_Selection->itemAt(0);
-	}
-
+		return m_doc->m_Selection->itemAt(0);
 	return nullptr;
 }
 




More information about the scribus-commit mailing list