summaryrefslogtreecommitdiff
path: root/sw/source/ui/dialog/uiregionsw.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-05-30 15:01:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-31 08:21:31 +0200
commit9ff648c691f003a11eba9a22ac37032d72b4b642 (patch)
tree1cc0c0cc4509d51a1fd0b7b94415646eea588847 /sw/source/ui/dialog/uiregionsw.cxx
parent65cdb6243f9d849d04c2ca6390a36cd9fa98b421 (diff)
tdf#125372 writer, file with lots of hints very slow to open, part8
Takes load time from 22s to 15.5s sw::mark::IMark does not need to be held by shared_ptr - we have one vector, which holds all marks we created, and when we remove from that vector, which remove the other references too. Change-Id: Ie6d287d9d825f7129855b64a34afa81a2ef9c378 Reviewed-on: https://gerrit.libreoffice.org/73206 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/dialog/uiregionsw.cxx')
-rw-r--r--sw/source/ui/dialog/uiregionsw.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx
index 6017ee04ee21..b3c9a6ccb837 100644
--- a/sw/source/ui/dialog/uiregionsw.cxx
+++ b/sw/source/ui/dialog/uiregionsw.cxx
@@ -135,7 +135,7 @@ static void lcl_FillSubRegionList( SwWrtShell& rSh, weld::ComboBox& rSubRegions,
ppMark != pMarkAccess->getBookmarksEnd();
++ppMark)
{
- const ::sw::mark::IMark* pBkmk = ppMark->get();
+ const ::sw::mark::IMark* pBkmk = *ppMark;
if( pBkmk->IsExpanded() )
rSubRegions.append_text( pBkmk->GetName() );
}