diff options
Diffstat (limited to 'cui/source/options/optaboutconfig.cxx')
-rw-r--r-- | cui/source/options/optaboutconfig.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx index 0fe009240837..717ae6d9ccf9 100644 --- a/cui/source/options/optaboutconfig.cxx +++ b/cui/source/options/optaboutconfig.cxx @@ -210,7 +210,8 @@ void CuiAboutConfigTabPage::InsertEntry(const OUString& rPropertyPath, const OUS pEntry->AddItem(o3tl::make_unique<SvLBoxString>(rStatus)); pEntry->AddItem(o3tl::make_unique<SvLBoxString>(rType)); pEntry->AddItem(o3tl::make_unique<SvLBoxString>(rValue)); - pEntry->SetUserData( new UserData(rPropertyPath) ); + m_vectorUserData.push_back(o3tl::make_unique<UserData>(rPropertyPath)); + pEntry->SetUserData(m_vectorUserData.back().get()); if(bInsertToPrefBox) m_pPrefBox->Insert( pEntry, pParentEntry ); @@ -291,7 +292,8 @@ void CuiAboutConfigTabPage::FillItems(const Reference< XNameAccess >& xNameAcces pEntry->AddItem(o3tl::make_unique<SvLBoxString>("")); pEntry->AddItem(o3tl::make_unique<SvLBoxString>("")); - pEntry->SetUserData( new UserData(xNextNameAccess, lineage + 1) ); + m_vectorUserData.push_back(o3tl::make_unique<UserData>(xNextNameAccess, lineage + 1)); + pEntry->SetUserData(m_vectorUserData.back().get()); pEntry->EnableChildrenOnDemand(); m_pPrefBox->Insert( pEntry, pParentEntry ); } |