diff options
Diffstat (limited to 'sw/source/ui/vba/vbatablesofcontents.cxx')
-rw-r--r-- | sw/source/ui/vba/vbatablesofcontents.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/vba/vbatablesofcontents.cxx b/sw/source/ui/vba/vbatablesofcontents.cxx index 97e24ddb3496..8df156fecf2d 100644 --- a/sw/source/ui/vba/vbatablesofcontents.cxx +++ b/sw/source/ui/vba/vbatablesofcontents.cxx @@ -33,22 +33,22 @@ namespace { class TablesOfContentsEnumWrapper : public EnumerationHelper_BASE { uno::Reference< container::XIndexAccess > mxIndexAccess; - sal_Int32 nIndex; + sal_Int32 m_nIndex; public: - explicit TablesOfContentsEnumWrapper( uno::Reference< container::XIndexAccess > xIndexAccess ) : mxIndexAccess(std::move( xIndexAccess )), nIndex( 0 ) + explicit TablesOfContentsEnumWrapper( uno::Reference< container::XIndexAccess > xIndexAccess ) : mxIndexAccess(std::move( xIndexAccess )), m_nIndex( 0 ) { } virtual sal_Bool SAL_CALL hasMoreElements( ) override { - return ( nIndex < mxIndexAccess->getCount() ); + return ( m_nIndex < mxIndexAccess->getCount() ); } virtual uno::Any SAL_CALL nextElement( ) override { - if( nIndex < mxIndexAccess->getCount() ) + if( m_nIndex < mxIndexAccess->getCount() ) { - return mxIndexAccess->getByIndex( nIndex++ ); + return mxIndexAccess->getByIndex( m_nIndex++ ); } throw container::NoSuchElementException(); } |