summaryrefslogtreecommitdiff
path: root/sw/source/ui/chrdlg/chardlg.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-28 10:18:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-28 17:30:07 +0200
commit9b81036c87b52edc2ce44813b31be425bc12ee1d (patch)
tree28ed98a455fe5a0c47f5531f8d40a5c4c81413ef /sw/source/ui/chrdlg/chardlg.cxx
parentaf8d12bd3a73381dfdfad92b63306369a665a2d7 (diff)
no need to allocate these on the heap
Change-Id: I55ecf6b8d9df2078f9bc81f54dbabf425c300643 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116320 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/chrdlg/chardlg.cxx')
-rw-r--r--sw/source/ui/chrdlg/chardlg.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/chrdlg/chardlg.cxx b/sw/source/ui/chrdlg/chardlg.cxx
index 4b4eeb094982..f81bfa7c13b3 100644
--- a/sw/source/ui/chrdlg/chardlg.cxx
+++ b/sw/source/ui/chrdlg/chardlg.cxx
@@ -177,14 +177,14 @@ SwCharURLPage::SwCharURLPage(weld::Container* pPage, weld::DialogController* pCo
m_xNotVisitedLB->set_active_id(OUString::number(RES_POOLCHR_INET_NORMAL));
m_xNotVisitedLB->save_value();
- std::unique_ptr<TargetList> pList( new TargetList );
- SfxFrame::GetDefaultTargetList(*pList);
+ TargetList aList;
+ SfxFrame::GetDefaultTargetList(aList);
m_xTargetFrameLB->freeze();
- size_t nCount = pList->size();
+ size_t nCount = aList.size();
for (size_t i = 0; i < nCount; ++i)
{
- m_xTargetFrameLB->append_text(pList->at(i));
+ m_xTargetFrameLB->append_text(aList.at(i));
}
m_xTargetFrameLB->thaw();
}