diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-20 16:07:32 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-20 17:00:07 +0000 |
commit | a5d273d66d222cdcaf6edb63c82a886e19963357 (patch) | |
tree | ef40da77cdf7df573e91c05c083d64dec19b0a94 | |
parent | 68570131013cfcf29f4c934a727053c2903e35b1 (diff) |
sw: prefix members of SwXAutoStylesEnumerator
Change-Id: I9302aeb9f6ac6003e546e5a96e595dcad161187b
Reviewed-on: https://gerrit.libreoffice.org/19490
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r-- | sw/inc/unostyle.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/unocore/unostyle.cxx | 22 |
2 files changed, 12 insertions, 12 deletions
diff --git a/sw/inc/unostyle.hxx b/sw/inc/unostyle.hxx index 573b9fab3e00..7b7930c125de 100644 --- a/sw/inc/unostyle.hxx +++ b/sw/inc/unostyle.hxx @@ -380,7 +380,7 @@ public: class SwXAutoStylesEnumerator : public cppu::WeakImplHelper< ::com::sun::star::container::XEnumeration >, public SwClient { - SwAutoStylesEnumImpl *pImpl; + SwAutoStylesEnumImpl *m_pImpl; public: SwXAutoStylesEnumerator( SwDoc* pDoc, IStyleAccess::SwAutoStyleFamily eFam ); virtual ~SwXAutoStylesEnumerator(); diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index 42520586beea..508758b23e92 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -4443,7 +4443,7 @@ SwAutoStylesEnumImpl::SwAutoStylesEnumImpl( SwDoc* pInitDoc, IStyleAccess::SwAut } SwXAutoStylesEnumerator::SwXAutoStylesEnumerator( SwDoc* pDoc, IStyleAccess::SwAutoStyleFamily eFam ) -: pImpl( new SwAutoStylesEnumImpl( pDoc, eFam ) ) +: m_pImpl( new SwAutoStylesEnumImpl( pDoc, eFam ) ) { // Register ourselves as a listener to the document (via the page descriptor) pDoc->getIDocumentStylePoolAccess().GetPageDescFromPool(RES_POOLPAGE_STANDARD)->Add(this); @@ -4451,7 +4451,7 @@ SwXAutoStylesEnumerator::SwXAutoStylesEnumerator( SwDoc* pDoc, IStyleAccess::SwA SwXAutoStylesEnumerator::~SwXAutoStylesEnumerator() { - delete pImpl; + delete m_pImpl; } void SwXAutoStylesEnumerator::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) @@ -4459,30 +4459,30 @@ void SwXAutoStylesEnumerator::Modify( const SfxPoolItem* pOld, const SfxPoolItem ClientModify(this, pOld, pNew); if(!GetRegisteredIn()) { - delete pImpl; - pImpl = 0; + delete m_pImpl; + m_pImpl = 0; } } sal_Bool SwXAutoStylesEnumerator::hasMoreElements( ) throw (uno::RuntimeException, std::exception) { - if( !pImpl ) + if( !m_pImpl ) throw uno::RuntimeException(); - return pImpl->hasMoreElements(); + return m_pImpl->hasMoreElements(); } uno::Any SwXAutoStylesEnumerator::nextElement( ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { - if( !pImpl ) + if( !m_pImpl ) throw uno::RuntimeException(); uno::Any aRet; - if( pImpl->hasMoreElements() ) + if( m_pImpl->hasMoreElements() ) { - SfxItemSet_Pointer_t pNextSet = pImpl->nextElement(); - uno::Reference< style::XAutoStyle > xAutoStyle = new SwXAutoStyle(pImpl->getDoc(), - pNextSet, pImpl->getFamily()); + SfxItemSet_Pointer_t pNextSet = m_pImpl->nextElement(); + uno::Reference< style::XAutoStyle > xAutoStyle = new SwXAutoStyle(m_pImpl->getDoc(), + pNextSet, m_pImpl->getFamily()); aRet.setValue(&xAutoStyle, cppu::UnoType<style::XAutoStyle>::get()); } return aRet; |