r13818 by jghali - make Color::document() const

scribus-commit scribus-commit at lists.scribus.net
Fri Aug 7 19:50:49 CEST 2009


Revision: 13818
Author: jghali
Date: 2009-08-07T17:48:14.423912Z
Commit message: make Color::document() const

Changeset: 
M  /trunk/Scribus/scribus/sccolor.h
M  /trunk/Scribus/scribus/sccolor.cpp

Diffs:
Index: scribus/sccolor.h
===================================================================
--- scribus/sccolor.h	(revision 13817)
+++ scribus/sccolor.h	(revision 13818)
@@ -153,7 +153,7 @@
 	ColorList& operator= (const ColorList& list);
 
 	/** \brief Get the document the list is related , return in cpp due to scribusdoc class delcaration */
-	ScribusDoc* document(void);
+	ScribusDoc* document(void) const;
 
 	/** \brief Assign the doc to which the list belong to.*/
 	void setDocument(ScribusDoc* doc);
Index: scribus/sccolor.cpp
===================================================================
--- scribus/sccolor.cpp	(revision 13817)
+++ scribus/sccolor.cpp	(revision 13818)
@@ -331,7 +331,7 @@
 	addColors(colorList, overwrite);
 }
 
-ScribusDoc* ColorList::document(void)
+ScribusDoc* ColorList::document(void) const
 { 
 	return m_doc;
 }




More information about the scribus-commit mailing list