cid#1453996 Unchecked return value
Change-Id: I0b5010aec8ad941d662e851833923a8b6b0a383d Reviewed-on: https://gerrit.libreoffice.org/79672 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -575,15 +575,14 @@ OfaTreeOptionsDialog::~OfaTreeOptionsDialog()
|
||||
OptionsPageInfo* OfaTreeOptionsDialog::AddTabPage(
|
||||
sal_uInt16 nId, const OUString& rPageName, sal_uInt16 nGroup )
|
||||
{
|
||||
OptionsPageInfo* pPageInfo = new OptionsPageInfo( nId );
|
||||
|
||||
std::unique_ptr<weld::TreeIter> xParent = xTreeLB->make_iterator();
|
||||
xTreeLB->get_iter_first(*xParent);
|
||||
if (!xTreeLB->get_iter_first(*xParent))
|
||||
return nullptr;
|
||||
xTreeLB->iter_nth_sibling(*xParent, nGroup);
|
||||
|
||||
OptionsPageInfo* pPageInfo = new OptionsPageInfo( nId );
|
||||
OUString sId(OUString::number(reinterpret_cast<sal_Int64>(pPageInfo)));;
|
||||
xTreeLB->insert(xParent.get(), -1, &rPageName, &sId, nullptr, nullptr, nullptr, false, nullptr);
|
||||
|
||||
return pPageInfo;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user