summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-12-20 09:09:53 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-12-20 09:42:44 +0000
commit51b6a7c87ba27e181fb3634e96296b7307a8281f (patch)
tree2cbb9a515392af1b32dd813190f5fb7250339837 /sw
parent5c5a6c3668c2112ce419f6b559105e915d9bd29d (diff)
writerfilter: various small cleanups
Change-Id: I258a03909e2a166b8f1c077cf758974a06ad3403 Reviewed-on: https://gerrit.libreoffice.org/32215 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/rtfexportfilter.cxx2
-rw-r--r--sw/source/filter/ww8/rtfsdrexport.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/rtfexportfilter.cxx b/sw/source/filter/ww8/rtfexportfilter.cxx
index 81707231c7d2..f09a8c525702 100644
--- a/sw/source/filter/ww8/rtfexportfilter.cxx
+++ b/sw/source/filter/ww8/rtfexportfilter.cxx
@@ -47,7 +47,7 @@ sal_Bool RtfExportFilter::filter(const uno::Sequence< beans::PropertyValue >& aD
// get SwDoc*
uno::Reference< uno::XInterface > xIfc(m_xSrcDoc, uno::UNO_QUERY);
- SwXTextDocument* pTextDoc = dynamic_cast< SwXTextDocument* >(xIfc.get());
+ auto pTextDoc = dynamic_cast<SwXTextDocument*>(xIfc.get());
if (!pTextDoc)
{
return false;
diff --git a/sw/source/filter/ww8/rtfsdrexport.cxx b/sw/source/filter/ww8/rtfsdrexport.cxx
index 848457b74143..838591a096ce 100644
--- a/sw/source/filter/ww8/rtfsdrexport.cxx
+++ b/sw/source/filter/ww8/rtfsdrexport.cxx
@@ -471,7 +471,7 @@ void RtfSdrExport::impl_writeGraphic()
(void)GraphicConverter::Export(aStream, aGraphic, ConvertDataFormat::PNG);
aStream.Seek(STREAM_SEEK_TO_END);
sal_uInt32 nSize = aStream.Tell();
- const sal_uInt8* pGraphicAry = static_cast<sal_uInt8 const*>(aStream.GetData());
+ auto pGraphicAry = static_cast<sal_uInt8 const*>(aStream.GetData());
Size aMapped(aGraphic.GetPrefSize());
@@ -531,7 +531,7 @@ sal_Int32 RtfSdrExport::StartShape()
}
}
- const SdrTextObj* pTextObj = dynamic_cast<const SdrTextObj*>(m_pSdrObject);
+ auto pTextObj = dynamic_cast<const SdrTextObj*>(m_pSdrObject);
if (pTextObj)
{
const OutlinerParaObject* pParaObj = nullptr;