r16832 by jghali - fix a few more warnings

scribus-commit scribus-commit at lists.scribus.net
Wed Sep 14 20:53:41 UTC 2011


Author: jghali
Date: Wed Sep 14 20:53:41 2011
New Revision: 16832

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=16832
Log:
fix a few more warnings

Modified:
    trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
    trunk/Scribus/scribus/ui/propertiespalette.cpp
    trunk/Scribus/scribus/ui/propertiespalette_text.cpp

Modified: trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16832&path=/trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp (original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp Wed Sep 14 20:53:41 2011
@@ -2730,7 +2730,6 @@
 		{
 			newItem->itemText.insertChars(newItem->itemText.length(), SpecialChars::PARSEP);
 			ParagraphStyle newStyle;
-			PrefsManager* prefsManager = PrefsManager::instance();
 			readParagraphStyle(doc, reader, newStyle);
 			newItem->itemText.setStyle(newItem->itemText.length()-1, newStyle);
 			newItem->itemText.setCharStyle(newItem->itemText.length()-1, 1, lastStyle->Style);
@@ -2738,7 +2737,6 @@
 		else if (tName == "trail")
 		{
 			ParagraphStyle newStyle;
-			PrefsManager* prefsManager = PrefsManager::instance();
 			readParagraphStyle(doc, reader, newStyle);
 			newItem->itemText.setStyle(newItem->itemText.length(), newStyle);
 		}

Modified: trunk/Scribus/scribus/ui/propertiespalette.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16832&path=/trunk/Scribus/scribus/ui/propertiespalette.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertiespalette.cpp (original)
+++ trunk/Scribus/scribus/ui/propertiespalette.cpp Wed Sep 14 20:53:41 2011
@@ -281,12 +281,9 @@
 	Tpal->setDocument(m_doc);
 	Tpal->setCurrentItem(NULL);
 
-	m_unitRatio=m_doc->unitRatio();
-	m_unitIndex=m_doc->unitIndex();
-	int precision = unitGetPrecisionFromIndex(m_unitIndex);
+	m_unitRatio = m_doc->unitRatio();
+	m_unitIndex = m_doc->unitIndex();
 //qt4 FIXME here
-	double maxXYWHVal= 16777215 * m_unitRatio;
-	double minXYVal= -16777215 * m_unitRatio;
 	m_haveDoc = true;
 	m_haveItem = false;
 

Modified: trunk/Scribus/scribus/ui/propertiespalette_text.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16832&path=/trunk/Scribus/scribus/ui/propertiespalette_text.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertiespalette_text.cpp (original)
+++ trunk/Scribus/scribus/ui/propertiespalette_text.cpp Wed Sep 14 20:53:41 2011
@@ -154,9 +154,6 @@
 
 	m_unitRatio   = m_doc->unitRatio();
 	m_unitIndex   = m_doc->unitIndex();
-	int precision = unitGetPrecisionFromIndex(m_unitIndex);
-	double maxXYWHVal =  16777215 * m_unitRatio;
-	double minXYVal   = -16777215 * m_unitRatio;
 
 	m_haveDoc  = true;
 	m_haveItem = false;




More information about the scribus-commit mailing list