Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit e0722868 authored by Thorsten Zachmann's avatar Thorsten Zachmann

o pass the dataCenterMap as const &

svn path=/trunk/koffice/; revision=862845
parent 0bcee6ad
......@@ -1115,6 +1115,11 @@ void KoShape::saveOdfCommonChildElements( KoShapeSavingContext &context ) const
// end loading & saving methods
void KoShape::init( const QMap<QString, KoDataCenter *> & dataCenterMap )
{
Q_UNUSED(dataCenterMap);
};
// static
void KoShape::applyConversion(QPainter &painter, const KoViewConverter &converter)
......
......@@ -198,7 +198,7 @@ public:
* might want.
* The default implementation does nothing.
*/
virtual void init( QMap<QString, KoDataCenter *> dataCenterMap ) {Q_UNUSED(dataCenterMap)};
virtual void init( const QMap<QString, KoDataCenter *> & dataCenterMap );
/**
* @brief Scale the shape using the zero-point which is the top-left corner.
......
......@@ -126,7 +126,7 @@ bool PictureShape::loadFromUrl( KUrl &url )
return false;
}
void PictureShape::init(QMap<QString, KoDataCenter *> dataCenterMap)
void PictureShape::init(const QMap<QString, KoDataCenter *> & dataCenterMap)
{
m_imageCollection = (KoImageCollection *)dataCenterMap["ImageCollection"];
}
......@@ -47,7 +47,7 @@ public:
bool loadFromUrl( KUrl & );
/// reimplemented
void init(QMap<QString, KoDataCenter *> dataCenterMap);
void init(const QMap<QString, KoDataCenter *> & dataCenterMap);
protected:
virtual bool loadOdfFrameElement( const KoXmlElement & element, KoShapeLoadingContext & context );
......
......@@ -268,7 +268,7 @@ bool TextShape::loadOdfFrameElement(const KoXmlElement & element, KoShapeLoading
return m_textShapeData->loadOdf(element, context);
}
void TextShape::init(QMap<QString, KoDataCenter *> dataCenterMap)
void TextShape::init(const QMap<QString, KoDataCenter *> & dataCenterMap)
{
KoStyleManager *styleManager = dynamic_cast<KoStyleManager *>(dataCenterMap["StyleManager"]);
KoTextDocument(m_textShapeData->document()).setStyleManager(styleManager);
......
......@@ -86,7 +86,7 @@ public:
virtual void saveOdf(KoShapeSavingContext & context) const;
/// reimplemented
virtual void init(QMap<QString, KoDataCenter *> dataCenterMap);
virtual void init(const QMap<QString, KoDataCenter *> & dataCenterMap);
KoTextShapeData *textShapeData() {
return m_textShapeData;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment