From a94105591251126b26cf46219e21082e6527fd20 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 18 Jan 2017 09:16:18 +0100 Subject: writerfilter: clean up remaining redundant initializers in RTF import Change-Id: Ic01f496b45a68ae35627bfbfb18f5aaf0b2b783d Reviewed-on: https://gerrit.libreoffice.org/33253 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- .../source/rtftok/rtfreferenceproperties.cxx | 3 +- writerfilter/source/rtftok/rtfvalue.cxx | 32 ---------------------- 2 files changed, 1 insertion(+), 34 deletions(-) (limited to 'writerfilter') diff --git a/writerfilter/source/rtftok/rtfreferenceproperties.cxx b/writerfilter/source/rtftok/rtfreferenceproperties.cxx index 7e334845c174..7f43c5e376d0 100644 --- a/writerfilter/source/rtftok/rtfreferenceproperties.cxx +++ b/writerfilter/source/rtftok/rtfreferenceproperties.cxx @@ -21,8 +21,7 @@ RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes, RTFSprms aS } RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes) - : m_aAttributes(aAttributes), - m_aSprms() + : m_aAttributes(aAttributes) { } diff --git a/writerfilter/source/rtftok/rtfvalue.cxx b/writerfilter/source/rtftok/rtfvalue.cxx index dbfe14cfceaa..0e540cb26f8b 100644 --- a/writerfilter/source/rtftok/rtfvalue.cxx +++ b/writerfilter/source/rtftok/rtfvalue.cxx @@ -39,12 +39,8 @@ RTFValue::RTFValue(int nValue, const OUString& sValue, RTFValue::RTFValue() : m_nValue(0), - m_sValue(), m_pAttributes(std::make_shared()), m_pSprms(std::make_shared()), - m_xShape(), - m_xStream(), - m_xObject(), m_bForceString(false), m_pShape(std::make_shared()) { @@ -52,12 +48,8 @@ RTFValue::RTFValue() RTFValue::RTFValue(int nValue) : m_nValue(nValue), - m_sValue(), m_pAttributes(std::make_shared()), m_pSprms(std::make_shared()), - m_xShape(), - m_xStream(), - m_xObject(), m_bForceString(false) { m_pShape.reset(new RTFShape()); @@ -68,9 +60,6 @@ RTFValue::RTFValue(const OUString& sValue, bool bForce) m_sValue(sValue), m_pAttributes(std::make_shared()), m_pSprms(std::make_shared()), - m_xShape(), - m_xStream(), - m_xObject(), m_bForceString(bForce), m_pShape(std::make_shared()) { @@ -78,12 +67,8 @@ RTFValue::RTFValue(const OUString& sValue, bool bForce) RTFValue::RTFValue(RTFSprms rAttributes) : m_nValue(), - m_sValue(), m_pAttributes(std::make_shared(rAttributes)), m_pSprms(std::make_shared()), - m_xShape(), - m_xStream(), - m_xObject(), m_bForceString(false), m_pShape(std::make_shared()) { @@ -91,12 +76,8 @@ RTFValue::RTFValue(RTFSprms rAttributes) RTFValue::RTFValue(RTFSprms rAttributes, RTFSprms rSprms) : m_nValue(), - m_sValue(), m_pAttributes(std::make_shared(rAttributes)), m_pSprms(std::make_shared(rSprms)), - m_xShape(), - m_xStream(), - m_xObject(), m_bForceString(false), m_pShape(std::make_shared()) { @@ -104,12 +85,9 @@ RTFValue::RTFValue(RTFSprms rAttributes, RTFSprms rSprms) RTFValue::RTFValue(uno::Reference const& xShape) : m_nValue(), - m_sValue(), m_pAttributes(std::make_shared()), m_pSprms(std::make_shared()), m_xShape(xShape), - m_xStream(), - m_xObject(), m_bForceString(false), m_pShape(std::make_shared()) { @@ -117,12 +95,9 @@ RTFValue::RTFValue(uno::Reference const& xShape) RTFValue::RTFValue(uno::Reference const& xStream) : m_nValue(), - m_sValue(), m_pAttributes(std::make_shared()), m_pSprms(std::make_shared()), - m_xShape(), m_xStream(xStream), - m_xObject(), m_bForceString(false), m_pShape(std::make_shared()) { @@ -130,11 +105,8 @@ RTFValue::RTFValue(uno::Reference const& xStream) RTFValue::RTFValue(uno::Reference const& xObject) : m_nValue(), - m_sValue(), m_pAttributes(std::make_shared()), m_pSprms(std::make_shared()), - m_xShape(), - m_xStream(), m_xObject(xObject), m_bForceString(false), m_pShape(std::make_shared()) @@ -143,12 +115,8 @@ RTFValue::RTFValue(uno::Reference const& xObject) RTFValue::RTFValue(const RTFShape& aShape) : m_nValue(), - m_sValue(), m_pAttributes(std::make_shared()), m_pSprms(std::make_shared()), - m_xShape(), - m_xStream(), - m_xObject(), m_bForceString(false), m_pShape(std::make_shared(aShape)) { -- cgit