summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-10-20 12:20:21 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-10-20 14:01:09 +0000
commitd86a7eb442e8596e83a73496abc25f83185eff04 (patch)
treea4b135a874f38940aff995a677ba95acfbf2aa1c /sw
parent1579dcb11efa99d8b76223e5f9803a4ebd715417 (diff)
sw: prefix members of SwXFrames
Change-Id: If5a041eefcd7cc8a6fa87814dacb95b88c2791d0 Reviewed-on: https://gerrit.libreoffice.org/19481 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/unocoll.hxx2
-rw-r--r--sw/source/core/unocore/unocoll.cxx20
2 files changed, 11 insertions, 11 deletions
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<OUString> 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<container::XEnumeration> 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<sal_Int32>(GetDoc()->GetFlyCount(eType, /*bIgnoreTextBoxes=*/eType == FLYCNTTYPE_FRM));
+ return static_cast<sal_Int32>(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<size_t>(nIndex), eType, /*bIgnoreTextBoxes=*/eType == FLYCNTTYPE_FRM);
+ SwFrameFormat* pFormat = GetDoc()->GetFlyNum(static_cast<size_t>(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<SwFrameFormat*>(pFormat), eType);
+ return lcl_UnoWrapFrame(const_cast<SwFrameFormat*>(pFormat), m_eType);
}
uno::Sequence<OUString> 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<XTextFrame>::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;
}