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 --- svtools/source/contnr/treelistbox.cxx | 8 ++++---- svtools/source/control/ruler.cxx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'svtools/source') diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index cf5e9a2aa05d..0b216898002e 100644 --- a/svtools/source/contnr/treelistbox.cxx +++ b/svtools/source/contnr/treelistbox.cxx @@ -482,7 +482,7 @@ bool SvTreeListBox::CheckDragAndDropMode( SvTreeListBox const * pSource, sal_Int - entry is inserted at the end of the target childlist */ TriState SvTreeListBox::NotifyMoving( - SvTreeListEntry* pTarget, // D&D dropping position in this->GetModel() + SvTreeListEntry* pTarget, // D&D dropping position in GetModel() SvTreeListEntry* pEntry, // entry that we want to move, from // GetSourceListBox()->GetModel() SvTreeListEntry*& rpNewParent, // new target parent @@ -516,7 +516,7 @@ TriState SvTreeListBox::NotifyMoving( } TriState SvTreeListBox::NotifyCopying( - SvTreeListEntry* pTarget, // D&D dropping position in this->GetModel() + SvTreeListEntry* pTarget, // D&D dropping position in GetModel() SvTreeListEntry* pEntry, // entry that we want to move, from // GetSourceListBox()->GetModel() SvTreeListEntry*& rpNewParent, // new target parent @@ -1074,7 +1074,7 @@ sal_Int8 SvTreeListBox::AcceptDrop( const AcceptDropEvent& rEvt ) else { DBG_ASSERT(g_pDDSource, "SvTreeListBox::QueryDrop(): SourceBox == 0"); - if (!( pEntry && g_pDDSource->GetModel() == this->GetModel() + if (!( pEntry && g_pDDSource->GetModel() == GetModel() && DND_ACTION_MOVE == rEvt.mnAction && (pEntry->nEntryFlags & SvTLEntryFlags::DISABLE_DROP))) { @@ -1211,7 +1211,7 @@ nAction #ifndef UNX if ( (nAction == DND_ACTION_MOVE) - && ( (g_pDDTarget && (g_pDDTarget->GetModel() != this->GetModel())) + && ( (g_pDDTarget && (g_pDDTarget->GetModel() != GetModel())) || !g_pDDTarget)) { RemoveSelection(); diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index 70b2897f7851..8392ba2fd678 100644 --- a/svtools/source/control/ruler.cxx +++ b/svtools/source/control/ruler.cxx @@ -2734,7 +2734,7 @@ uno::Reference< XAccessible > Ruler::CreateAccessible() aStr = SvtResId(STR_SVT_ACC_RULER_VERT_NAME); } mxAccContext = new SvtRulerAccessible( xAccParent, *this, aStr ); - this->SetAccessible(mxAccContext.get()); + SetAccessible(mxAccContext.get()); return mxAccContext.get(); } else -- cgit v1.2.3