diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-12-23 00:53:35 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-12-25 13:15:29 +0100 |
commit | 09d90f8c4e2bf188ebc06862302084869fecc557 (patch) | |
tree | eea100dc20aee5c9b6a05b5523bc5c9db3fed78b /sw | |
parent | dc9d9ff650c135e9a9d84af3480d992c7b6d47e7 (diff) |
remove GetPropImpl wrapper
Change-Id: I53c3f97d35621af9b6c5c0336b8c998d3fe0b270
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unostyle.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index 0e3830186a19..0009d8f2b5b7 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -258,11 +258,10 @@ class SwXStyle : public cppu::WeakImplHelper bool m_bIsDescriptor; bool m_bIsConditional; OUString m_sParentStyleName; - std::unique_ptr<SwStyleProperties_Impl> m_pPropertiesImpl; protected: SfxStyleSheetBasePool* m_pBasePool; - SwStyleProperties_Impl& GetPropImpl(){return *m_pPropertiesImpl;} + std::unique_ptr<SwStyleProperties_Impl> m_pPropertiesImpl; css::uno::Reference< css::beans::XPropertySet > mxStyleData; css::uno::Reference< css::container::XNameAccess > mxStyleFamily; @@ -1158,8 +1157,8 @@ SwXStyle::SwXStyle(SfxStyleSheetBasePool& rPool, SfxStyleFamily eFam, m_eFamily(eFam), m_bIsDescriptor(false), m_bIsConditional(false), - m_pPropertiesImpl(nullptr), - m_pBasePool(&rPool) + m_pBasePool(&rPool), + m_pPropertiesImpl(nullptr) { if(!m_pBasePool) return; @@ -3455,7 +3454,7 @@ void SAL_CALL SwXPageStyle::SetPropertyValues_Impl( } else if(IsDescriptor()) { - if(!GetPropImpl().SetProperty(rPropName, pValues[nProp])) + if(!m_pPropertiesImpl->SetProperty(rPropName, pValues[nProp])) throw lang::IllegalArgumentException(); } else @@ -3756,7 +3755,7 @@ uno::Sequence< uno::Any > SAL_CALL SwXPageStyle::GetPropertyValues_Impl( else if(IsDescriptor()) { const uno::Any* pAny = nullptr; - GetPropImpl().GetProperty(rPropName, pAny); + m_pPropertiesImpl->GetProperty(rPropName, pAny); if (!pAny->hasValue()) { SwStyleProperties_Impl::GetProperty(rPropName, mxStyleData, pRet[nProp]); |