basctl: Simplify another weld::TreeIter equality check
See this previous commit for more background:
Change-Id: I9386e100f83b9bdb832b50f1056305b81c23e351
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Tue Jan 20 19:52:12 2026 +0100
tdf#130857 Simplify various weld::TreeIter equality checks
Change-Id: I483dc42cd8c3f9c92b1719f1ba247cfc367b16e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197691
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
This commit is contained in:
@@ -336,7 +336,7 @@ private:
|
||||
{
|
||||
std::unique_ptr<weld::TreeIter> xParent(pSource->make_iterator(xEntry.get()));
|
||||
std::unique_ptr<weld::TreeIter> xSelParent(pSource->make_iterator(xSelected.get()));
|
||||
if (pSource->iter_parent(*xParent) && pSource->iter_parent(*xSelParent) && pSource->iter_compare(*xParent, *xSelParent) == 0)
|
||||
if (pSource->iter_parent(*xParent) && pSource->iter_parent(*xSelParent) && xParent->equal(*xSelParent))
|
||||
bValid = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user