From 904c97bbdf4c76709dbcacb11292668b98a9efd8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 2 Jul 2018 17:23:59 +0200 Subject: move SvTreeList::*Sibling to SvTreeListEntry since they don't depend on SvTreeList at all Change-Id: If48c83976a95943e5cfa92490d68f74281cf4b5f Reviewed-on: https://gerrit.libreoffice.org/56819 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basctl/source/basicide/bastype2.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/bastype2.cxx b/basctl/source/basicide/bastype2.cxx index 5d3071bd7e5f..5997980df2ea 100644 --- a/basctl/source/basicide/bastype2.cxx +++ b/basctl/source/basicide/bastype2.cxx @@ -506,7 +506,7 @@ SvTreeListEntry* TreeListBox::ImpFindEntry( SvTreeListEntry* pParent, const OUSt if ( rText == GetEntryText( pEntry ) ) return pEntry; - pEntry = pParent ? NextSibling( pEntry ) : GetEntry( ++nRootPos ); + pEntry = pParent ? pEntry->NextSibling() : GetEntry( ++nRootPos ); } return nullptr; } @@ -625,7 +625,7 @@ SvTreeListEntry* TreeListBox::FindEntry( SvTreeListEntry* pParent, const OUStrin if ( ( pBasicEntry->GetType() == eType ) && ( rText == GetEntryText( pEntry ) ) ) return pEntry; - pEntry = pParent ? NextSibling( pEntry ) : GetEntry( ++nRootPos ); + pEntry = pParent ? pEntry->NextSibling() : GetEntry( ++nRootPos ); } return nullptr; } -- cgit