summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/wrtww8.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-08-17 09:39:56 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-08-17 11:27:05 +0200
commit6255575c475a25698a4c7145923abbb46f58313d (patch)
tree25dd6feaaf9134574d9f9232094642893b54a8c8 /sw/source/filter/ww8/wrtww8.hxx
parent2e8acde112e1c6754df26902e79a78346ba45a2d (diff)
MSWord export: adapt interface to avoid const_cast
If the implementation uses const_cast anyway, then it's clearer to just not pretend const at the interface level. Change-Id: Ib819efe9204440fde6dc2af890e5ff2769f4b9d3 Reviewed-on: https://gerrit.libreoffice.org/41238 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw/source/filter/ww8/wrtww8.hxx')
-rw-r--r--sw/source/filter/ww8/wrtww8.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/wrtww8.hxx b/sw/source/filter/ww8/wrtww8.hxx
index 57aedebc5b07..ffa7221bdb90 100644
--- a/sw/source/filter/ww8/wrtww8.hxx
+++ b/sw/source/filter/ww8/wrtww8.hxx
@@ -680,7 +680,7 @@ public:
virtual void AppendAnnotationMarks( const SwTextNode& rNd, sal_Int32 nAktPos, sal_Int32 nLen ) = 0;
- virtual void AppendSmartTags(const SwTextNode& /*rTextNode*/) { }
+ virtual void AppendSmartTags(SwTextNode& /*rTextNode*/) { }
//For i120928,add this interface to export graphic of bullet
virtual void ExportGrfBullet(const SwTextNode& rNd) = 0;
@@ -794,7 +794,7 @@ protected:
void UpdatePosition( SwWW8AttrIter* pAttrIter, sal_Int32 nAktPos );
/// Output SwTextNode
- virtual void OutputTextNode( const SwTextNode& );
+ virtual void OutputTextNode( SwTextNode& );
/// Setup the chapter fields (maChapterFieldLocs).
void GatherChapterFields();
@@ -838,7 +838,7 @@ protected:
/// Call the right (virtual) function according to the type of the item.
///
/// One of OutputTextNode(), OutputGrfNode(), or OutputOLENode()
- void OutputContentNode( const SwContentNode& );
+ void OutputContentNode( SwContentNode& );
/// Find the nearest bookmark from the current position.
///
@@ -1041,7 +1041,7 @@ public:
virtual void AppendAnnotationMarks( const SwTextNode& rNd, sal_Int32 nAktPos, sal_Int32 nLen ) override;
- virtual void AppendSmartTags(const SwTextNode& rTextNode) override;
+ virtual void AppendSmartTags(SwTextNode& rTextNode) override;
virtual void ExportGrfBullet(const SwTextNode& rNd) override;
void OutGrfBullets(const ww8::Frame &rFrame);