sw/source/core/access/accnotexthyperlink.cxx | 8 +++---- sw/source/core/access/accnotexthyperlink.hxx | 2 - sw/source/core/access/accpage.cxx | 12 +++++----- sw/source/core/access/accpage.hxx | 2 - sw/source/core/access/acctable.cxx | 30 +++++++++++++-------------- 5 files changed, 27 insertions(+), 27 deletions(-)
New commits: commit b6b96f16c6269d2b42029b8e649c7965b936e09e Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Mon Jan 8 09:42:44 2018 +0100 sw: prefix members of SwAccessibleNoTextHyperlink, SwAccessiblePage and ... ... SwAccAllTableSelHander_Impl Change-Id: I8cc53ff4be6dcc5e9903d9d61c631898db0b5466 Reviewed-on: https://gerrit.libreoffice.org/47567 Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> Tested-by: Jenkins <c...@libreoffice.org> diff --git a/sw/source/core/access/accnotexthyperlink.cxx b/sw/source/core/access/accnotexthyperlink.cxx index a4555ee877bb..4682f701bbd2 100644 --- a/sw/source/core/access/accnotexthyperlink.cxx +++ b/sw/source/core/access/accnotexthyperlink.cxx @@ -38,7 +38,7 @@ using namespace css::uno; using namespace css::accessibility; SwAccessibleNoTextHyperlink::SwAccessibleNoTextHyperlink( SwAccessibleNoTextFrame *p, const SwFrame *aFrame ) : - xFrame( p ), + mxFrame( p ), mpFrame( aFrame ) { } @@ -77,7 +77,7 @@ sal_Bool SAL_CALL SwAccessibleNoTextHyperlink::doAccessibleAction( sal_Int32 nIn IMapObject* pMapObj = pMap->GetIMapObject(nIndex); if (!pMapObj->GetURL().isEmpty()) { - SwViewShell *pVSh = xFrame->GetShell(); + SwViewShell *pVSh = mxFrame->GetShell(); if( pVSh ) { LoadURL( *pVSh, pMapObj->GetURL(), LoadUrlFlags::NONE, @@ -88,7 +88,7 @@ sal_Bool SAL_CALL SwAccessibleNoTextHyperlink::doAccessibleAction( sal_Int32 nIn } else if (!aURL.GetURL().isEmpty()) { - SwViewShell *pVSh = xFrame->GetShell(); + SwViewShell *pVSh = mxFrame->GetShell(); if( pVSh ) { LoadURL( *pVSh, aURL.GetURL(), LoadUrlFlags::NONE, @@ -176,7 +176,7 @@ Any SAL_CALL SwAccessibleNoTextHyperlink::getAccessibleActionAnchor( Any aRet; //SwFrame* pAnchor = static_cast<SwFlyFrame*>(mpFrame)->GetAnchor(); - Reference< XAccessible > xAnchor = xFrame->GetAccessibleMap()->GetContext(mpFrame); + Reference< XAccessible > xAnchor = mxFrame->GetAccessibleMap()->GetContext(mpFrame); //SwAccessibleNoTextFrame* pFrame = xFrame.get(); //Reference< XAccessible > xAnchor = (XAccessible*)pFrame; aRet <<= xAnchor; diff --git a/sw/source/core/access/accnotexthyperlink.hxx b/sw/source/core/access/accnotexthyperlink.hxx index d57cd29f2e86..d9b9a7a0dfb2 100644 --- a/sw/source/core/access/accnotexthyperlink.hxx +++ b/sw/source/core/access/accnotexthyperlink.hxx @@ -34,7 +34,7 @@ class SwAccessibleNoTextHyperlink : { friend class SwAccessibleNoTextFrame; - ::rtl::Reference< SwAccessibleNoTextFrame > xFrame; + ::rtl::Reference< SwAccessibleNoTextFrame > mxFrame; const SwFrame *mpFrame; SwFrameFormat *GetFormat() diff --git a/sw/source/core/access/accpage.cxx b/sw/source/core/access/accpage.cxx index cfec5a6be975..7a3ea6f80bf7 100644 --- a/sw/source/core/access/accpage.cxx +++ b/sw/source/core/access/accpage.cxx @@ -53,7 +53,7 @@ void SwAccessiblePage::GetStates( // FOCUSED if( IsSelected() ) { - OSL_ENSURE( bIsSelected, "bSelected out of sync" ); + OSL_ENSURE( m_bIsSelected, "bSelected out of sync" ); ::rtl::Reference < SwAccessibleContext > xThis( this ); GetMap()->SetCursorContext( xThis ); @@ -70,8 +70,8 @@ void SwAccessiblePage::InvalidateCursorPos_() { osl::MutexGuard aGuard( m_Mutex ); - bOldSelected = bIsSelected; - bIsSelected = bNewSelected; + bOldSelected = m_bIsSelected; + m_bIsSelected = bNewSelected; } if( bNewSelected ) @@ -99,7 +99,7 @@ void SwAccessiblePage::InvalidateFocus_() { osl::MutexGuard aGuard( m_Mutex ); - bSelected = bIsSelected; + bSelected = m_bIsSelected; } OSL_ENSURE( bSelected, "focus object should be selected" ); @@ -111,7 +111,7 @@ void SwAccessiblePage::InvalidateFocus_() SwAccessiblePage::SwAccessiblePage(std::shared_ptr<SwAccessibleMap> const& pInitMap, const SwFrame* pFrame ) : SwAccessibleContext( pInitMap, AccessibleRole::PANEL, pFrame ) - , bIsSelected( false ) + , m_bIsSelected( false ) { assert(pFrame != nullptr); assert(pInitMap != nullptr); @@ -129,7 +129,7 @@ SwAccessiblePage::~SwAccessiblePage() bool SwAccessiblePage::HasCursor() { osl::MutexGuard aGuard( m_Mutex ); - return bIsSelected; + return m_bIsSelected; } OUString SwAccessiblePage::getImplementationName( ) diff --git a/sw/source/core/access/accpage.hxx b/sw/source/core/access/accpage.hxx index 355015756df7..006eda746557 100644 --- a/sw/source/core/access/accpage.hxx +++ b/sw/source/core/access/accpage.hxx @@ -31,7 +31,7 @@ */ class SwAccessiblePage : public SwAccessibleContext { - bool bIsSelected; // protected by base class mutex + bool m_bIsSelected; // protected by base class mutex bool IsSelected(); diff --git a/sw/source/core/access/acctable.cxx b/sw/source/core/access/acctable.cxx index 34d95e65d59b..46944a646cce 100644 --- a/sw/source/core/access/acctable.cxx +++ b/sw/source/core/access/acctable.cxx @@ -505,13 +505,13 @@ void SwAccSingleTableSelHander_Impl::Unselect( sal_Int32, sal_Int32 ) class SwAccAllTableSelHander_Impl : public SwAccTableSelHander_Impl { - std::vector< bool > aSelected; - sal_Int32 nCount; + std::vector< bool > m_aSelected; + sal_Int32 m_nCount; public: explicit SwAccAllTableSelHander_Impl(sal_Int32 nSize) - : aSelected(nSize, true) - , nCount(nSize) + : m_aSelected(nSize, true) + , m_nCount(nSize) { } @@ -527,21 +527,21 @@ SwAccAllTableSelHander_Impl::~SwAccAllTableSelHander_Impl() uno::Sequence < sal_Int32 > SwAccAllTableSelHander_Impl::GetSelSequence() { - OSL_ENSURE( nCount >= 0, "underflow" ); - uno::Sequence < sal_Int32 > aRet( nCount ); + OSL_ENSURE( m_nCount >= 0, "underflow" ); + uno::Sequence < sal_Int32 > aRet( m_nCount ); sal_Int32 *pRet = aRet.getArray(); sal_Int32 nPos = 0; - size_t nSize = aSelected.size(); - for( size_t i=0; i < nSize && nPos < nCount; i++ ) + size_t nSize = m_aSelected.size(); + for( size_t i=0; i < nSize && nPos < m_nCount; i++ ) { - if( aSelected[i] ) + if( m_aSelected[i] ) { *pRet++ = i; nPos++; } } - OSL_ENSURE( nPos == nCount, "count is wrong" ); + OSL_ENSURE( nPos == m_nCount, "count is wrong" ); return aRet; } @@ -549,16 +549,16 @@ uno::Sequence < sal_Int32 > SwAccAllTableSelHander_Impl::GetSelSequence() void SwAccAllTableSelHander_Impl::Unselect( sal_Int32 nRowOrCol, sal_Int32 nExt ) { - OSL_ENSURE( static_cast< size_t >( nRowOrCol ) < aSelected.size(), + OSL_ENSURE( static_cast< size_t >( nRowOrCol ) < m_aSelected.size(), "index to large" ); - OSL_ENSURE( static_cast< size_t >( nRowOrCol+nExt ) <= aSelected.size(), + OSL_ENSURE( static_cast< size_t >( nRowOrCol+nExt ) <= m_aSelected.size(), "extent to large" ); while( nExt ) { - if( aSelected[static_cast< size_t >( nRowOrCol )] ) + if( m_aSelected[static_cast< size_t >( nRowOrCol )] ) { - aSelected[static_cast< size_t >( nRowOrCol )] = false; - nCount--; + m_aSelected[static_cast< size_t >( nRowOrCol )] = false; + m_nCount--; } nExt--; nRowOrCol++; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits