From 3dcf6dfceee58360501396390d78c006351aef47 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 2 Aug 2017 12:57:55 +0200 Subject: remove unnecessary use of 'this->' Change-Id: I5c115389af7d24c18ddaf5fbec8c00f35017a5b4 Reviewed-on: https://gerrit.libreoffice.org/40671 Tested-by: Jenkins Reviewed-by: Noel Grandin --- comphelper/source/eventattachermgr/eventattachermgr.cxx | 14 +++++++------- comphelper/source/xml/attributelist.cxx | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'comphelper') diff --git a/comphelper/source/eventattachermgr/eventattachermgr.cxx b/comphelper/source/eventattachermgr/eventattachermgr.cxx index 0807377bb301..af3725ae2eb2 100644 --- a/comphelper/source/eventattachermgr/eventattachermgr.cxx +++ b/comphelper/source/eventattachermgr/eventattachermgr.cxx @@ -431,7 +431,7 @@ void SAL_CALL ImplEventAttacherManager::registerScriptEvents // Examine the index and apply the array std::deque< AttachedObject_Impl > aList = implCheckIndex( nIndex )->aObjList; for( const auto& rObj : aList ) - this->detach( nIndex, rObj.xTarget ); + detach( nIndex, rObj.xTarget ); const ScriptEventDescriptor* pArray = ScriptEvents.getConstArray(); sal_Int32 nLen = ScriptEvents.getLength(); @@ -439,7 +439,7 @@ void SAL_CALL ImplEventAttacherManager::registerScriptEvents registerScriptEvent( nIndex, pArray[ i ] ); for( const auto& rObj : aList ) - this->attach( nIndex, rObj.xTarget, rObj.aHelper ); + attach( nIndex, rObj.xTarget, rObj.aHelper ); } @@ -457,7 +457,7 @@ void SAL_CALL ImplEventAttacherManager::revokeScriptEvent std::deque< AttachedObject_Impl > aList = aIt->aObjList; for( const auto& rObj : aList ) - this->detach( nIndex, rObj.xTarget ); + detach( nIndex, rObj.xTarget ); OUString aLstType = ListenerType; sal_Int32 nLastDot = aLstType.lastIndexOf('.'); @@ -479,7 +479,7 @@ void SAL_CALL ImplEventAttacherManager::revokeScriptEvent } for( const auto& rObj : aList ) - this->attach( nIndex, rObj.xTarget, rObj.aHelper ); + attach( nIndex, rObj.xTarget, rObj.aHelper ); } @@ -490,10 +490,10 @@ void SAL_CALL ImplEventAttacherManager::revokeScriptEvents(sal_Int32 nIndex ) std::deque< AttachedObject_Impl > aList = aIt->aObjList; for( const auto& rObj : aList ) - this->detach( nIndex, rObj.xTarget ); + detach( nIndex, rObj.xTarget ); aIt->aEventList.clear(); for( const auto& rObj : aList ) - this->attach( nIndex, rObj.xTarget, rObj.aHelper ); + attach( nIndex, rObj.xTarget, rObj.aHelper ); } @@ -518,7 +518,7 @@ void SAL_CALL ImplEventAttacherManager::removeEntry(sal_Int32 nIndex) std::deque< AttachedObject_Impl > aList = aIt->aObjList; for( const auto& rObj : aList ) - this->detach( nIndex, rObj.xTarget ); + detach( nIndex, rObj.xTarget ); aIndex.erase( aIt ); } diff --git a/comphelper/source/xml/attributelist.cxx b/comphelper/source/xml/attributelist.cxx index 44b674b901c9..cf02d5c9bbf7 100644 --- a/comphelper/source/xml/attributelist.cxx +++ b/comphelper/source/xml/attributelist.cxx @@ -32,9 +32,9 @@ struct TagAttribute_Impl TagAttribute_Impl( const OUString &aName, const OUString &aType, const OUString &aValue ) { - this->sName = aName; - this->sType = aType; - this->sValue = aValue; + sName = aName; + sType = aType; + sValue = aValue; } OUString sName; -- cgit