r14633 by subik - compiler warnings fixed to reduce anoying printouts

scribus-commit scribus-commit at lists.scribus.net
Wed Feb 3 10:00:27 CET 2010


Revision: 14633
Author: subik
Date: 2010-02-03T08:50:46.275115Z
Commit message: compiler warnings fixed to reduce anoying printouts

Changeset: 
M  /trunk/Scribus/scribus/colormgmt/sccolormgmtenginedata.h
M  /trunk/Scribus/scribus/colormgmt/sccolormgmtelem.h
M  /trunk/Scribus/scribus/sctextstruct.h
M  /trunk/Scribus/scribus/canvasmode_edit.cpp

Diffs:
Index: scribus/canvasmode_edit.cpp
===================================================================
--- scribus/canvasmode_edit.cpp	(revision 14632)
+++ scribus/canvasmode_edit.cpp	(revision 14633)
@@ -359,7 +359,7 @@
 	m_lastPosWasOverGuide = false;
 	double newX, newY;
 	PageItem *currItem;
-	bool erf = false;
+	//bool erf = false;
 	m->accept();
 	if (commonMouseMove(m))
 		return;
Index: scribus/sctextstruct.h
===================================================================
--- scribus/sctextstruct.h	(revision 14632)
+++ scribus/sctextstruct.h	(revision 14633)
@@ -60,6 +60,8 @@
 	GlyphLayout() : xadvance(0.0f), yadvance(0.0f), xoffset(0.0f), yoffset(0.0f),
 		scaleV(1.0), scaleH(1.0), glyph(0), more(NULL) 
 	{ }
+	virtual ~GlyphLayout()
+	{ }
 	double wide() const 
 	{ 
 		double ret = 0; 
Index: scribus/colormgmt/sccolormgmtelem.h
===================================================================
--- scribus/colormgmt/sccolormgmtelem.h	(revision 14632)
+++ scribus/colormgmt/sccolormgmtelem.h	(revision 14633)
@@ -13,6 +13,7 @@
 class ScColorMgmtElem
 {
 public:
+	virtual ~ScColorMgmtElem() {};
 	virtual ScColorMgmtEngine& engine() = 0;
 	virtual const ScColorMgmtEngine& engine() const = 0;
 };
Index: scribus/colormgmt/sccolormgmtenginedata.h
===================================================================
--- scribus/colormgmt/sccolormgmtenginedata.h	(revision 14632)
+++ scribus/colormgmt/sccolormgmtenginedata.h	(revision 14633)
@@ -30,6 +30,7 @@
 	ScColorMgmtEngineData(const QString& desc, int uniqueID) : m_engineID(uniqueID), 
 	                                                           m_description(desc)
 	{}
+	virtual ~ScColorMgmtEngineData() {};
 	
 	// Getters
 	int   engineID() const { return m_engineID; }




More information about the scribus-commit mailing list