From d86a7eb442e8596e83a73496abc25f83185eff04 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 20 Oct 2015 12:20:21 +0200 Subject: sw: prefix members of SwXFrames Change-Id: If5a041eefcd7cc8a6fa87814dacb95b88c2791d0 Reviewed-on: https://gerrit.libreoffice.org/19481 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- sw/inc/unocoll.hxx | 2 +- sw/source/core/unocore/unocoll.cxx | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'sw') diff --git a/sw/inc/unocoll.hxx b/sw/inc/unocoll.hxx index 2f829df71165..6a3942c2de07 100644 --- a/sw/inc/unocoll.hxx +++ b/sw/inc/unocoll.hxx @@ -305,7 +305,7 @@ cppu::WeakImplHelper class SW_DLLPUBLIC SwXFrames : public SwXFramesBaseClass, public SwUnoCollection { - const FlyCntType eType; + const FlyCntType m_eType; protected: virtual ~SwXFrames(); public: diff --git a/sw/source/core/unocore/unocoll.cxx b/sw/source/core/unocore/unocoll.cxx index 37046e4953a5..986f43b46825 100644 --- a/sw/source/core/unocore/unocoll.cxx +++ b/sw/source/core/unocore/unocoll.cxx @@ -1161,7 +1161,7 @@ Sequence SwXFrames::getSupportedServiceNames() throw( RuntimeException SwXFrames::SwXFrames(SwDoc* _pDoc, FlyCntType eSet) : SwUnoCollection(_pDoc), - eType(eSet) + m_eType(eSet) {} SwXFrames::~SwXFrames() @@ -1172,7 +1172,7 @@ uno::Reference SwXFrames::createEnumeration() throw(uno SolarMutexGuard aGuard; if(!IsValid()) throw uno::RuntimeException(); - switch(eType) + switch(m_eType) { case FLYCNTTYPE_FRM: return uno::Reference< container::XEnumeration >( @@ -1194,7 +1194,7 @@ sal_Int32 SwXFrames::getCount() throw(uno::RuntimeException, std::exception) if(!IsValid()) throw uno::RuntimeException(); // Ignore TextBoxes for TextFrames. - return static_cast(GetDoc()->GetFlyCount(eType, /*bIgnoreTextBoxes=*/eType == FLYCNTTYPE_FRM)); + return static_cast(GetDoc()->GetFlyCount(m_eType, /*bIgnoreTextBoxes=*/m_eType == FLYCNTTYPE_FRM)); } uno::Any SwXFrames::getByIndex(sal_Int32 nIndex) @@ -1206,10 +1206,10 @@ uno::Any SwXFrames::getByIndex(sal_Int32 nIndex) if(nIndex < 0) throw IndexOutOfBoundsException(); // Ignore TextBoxes for TextFrames. - SwFrameFormat* pFormat = GetDoc()->GetFlyNum(static_cast(nIndex), eType, /*bIgnoreTextBoxes=*/eType == FLYCNTTYPE_FRM); + SwFrameFormat* pFormat = GetDoc()->GetFlyNum(static_cast(nIndex), m_eType, /*bIgnoreTextBoxes=*/m_eType == FLYCNTTYPE_FRM); if(!pFormat) throw IndexOutOfBoundsException(); - return lcl_UnoWrapFrame(pFormat, eType); + return lcl_UnoWrapFrame(pFormat, m_eType); } uno::Any SwXFrames::getByName(const OUString& rName) @@ -1219,7 +1219,7 @@ uno::Any SwXFrames::getByName(const OUString& rName) if(!IsValid()) throw uno::RuntimeException(); const SwFrameFormat* pFormat; - switch(eType) + switch(m_eType) { case FLYCNTTYPE_GRF: pFormat = GetDoc()->FindFlyByName(rName, ND_GRFNODE); @@ -1233,7 +1233,7 @@ uno::Any SwXFrames::getByName(const OUString& rName) } if(!pFormat) throw NoSuchElementException(); - return lcl_UnoWrapFrame(const_cast(pFormat), eType); + return lcl_UnoWrapFrame(const_cast(pFormat), m_eType); } uno::Sequence SwXFrames::getElementNames() throw( uno::RuntimeException, std::exception ) @@ -1258,7 +1258,7 @@ sal_Bool SwXFrames::hasByName(const OUString& rName) throw( uno::RuntimeExceptio SolarMutexGuard aGuard; if(!IsValid()) throw uno::RuntimeException(); - switch(eType) + switch(m_eType) { case FLYCNTTYPE_GRF: return GetDoc()->FindFlyByName(rName, ND_GRFNODE) != NULL; @@ -1272,7 +1272,7 @@ sal_Bool SwXFrames::hasByName(const OUString& rName) throw( uno::RuntimeExceptio uno::Type SAL_CALL SwXFrames::getElementType() throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; - switch(eType) + switch(m_eType) { case FLYCNTTYPE_FRM: return cppu::UnoType::get(); @@ -1290,7 +1290,7 @@ sal_Bool SwXFrames::hasElements() throw(uno::RuntimeException, std::exception) SolarMutexGuard aGuard; if(!IsValid()) throw uno::RuntimeException(); - return GetDoc()->GetFlyCount(eType) > 0; + return GetDoc()->GetFlyCount(m_eType) > 0; } -- cgit