summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-05-13 10:06:47 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-05-13 09:47:07 +0000
commitdbdd303ab1cba5bb094aba086196c89811e7b835 (patch)
tree2146b899a8604b1f5912a5bc8bc7675daad84508
parentf53e427291321eabe8d060a737e750a94739f911 (diff)
docxtablestyleexport: can pass the serializer by const ref
Change-Id: I32409693ffefe753db5b7a5afc2fbec4030e5e93 Reviewed-on: https://gerrit.libreoffice.org/24950 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r--sw/source/filter/ww8/docxtablestyleexport.cxx2
-rw-r--r--sw/source/filter/ww8/docxtablestyleexport.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/docxtablestyleexport.cxx b/sw/source/filter/ww8/docxtablestyleexport.cxx
index fbc99db2a13d..107fe77b9729 100644
--- a/sw/source/filter/ww8/docxtablestyleexport.cxx
+++ b/sw/source/filter/ww8/docxtablestyleexport.cxx
@@ -679,7 +679,7 @@ void DocxTableStyleExport::Impl::TableStyle(uno::Sequence<beans::PropertyValue>&
m_pSerializer->endElementNS(XML_w, XML_style);
}
-void DocxTableStyleExport::SetSerializer(sax_fastparser::FSHelperPtr pSerializer)
+void DocxTableStyleExport::SetSerializer(const sax_fastparser::FSHelperPtr& pSerializer)
{
m_pImpl->m_pSerializer = pSerializer;
}
diff --git a/sw/source/filter/ww8/docxtablestyleexport.hxx b/sw/source/filter/ww8/docxtablestyleexport.hxx
index 8900d9285fce..cf73a4b1017b 100644
--- a/sw/source/filter/ww8/docxtablestyleexport.hxx
+++ b/sw/source/filter/ww8/docxtablestyleexport.hxx
@@ -32,7 +32,7 @@ public:
/// Writes <w:cnfStyle .../> based on grab-bagged para, cell or row properties.
void CnfStyle(css::uno::Sequence<css::beans::PropertyValue>& rAttributeList);
- void SetSerializer(sax_fastparser::FSHelperPtr pSerializer);
+ void SetSerializer(const sax_fastparser::FSHelperPtr& pSerializer);
DocxTableStyleExport(SwDoc* pDoc, sax_fastparser::FSHelperPtr pSerializer);
~DocxTableStyleExport();
};