summaryrefslogtreecommitdiff
path: root/sw/qa/extras/mailmerge
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/qa/extras/mailmerge
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/qa/extras/mailmerge')
-rw-r--r--sw/qa/extras/mailmerge/mailmerge.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/qa/extras/mailmerge/mailmerge.cxx b/sw/qa/extras/mailmerge/mailmerge.cxx
index 7e6e20967e27..5395afa25bce 100644
--- a/sw/qa/extras/mailmerge/mailmerge.cxx
+++ b/sw/qa/extras/mailmerge/mailmerge.cxx
@@ -345,7 +345,7 @@ int MMTest::documentStartPageNumber( int document ) const
CPPUNIT_ASSERT_EQUAL(document, pos);
sal_uInt16 page, dummy;
shell->Push();
- shell->GotoMark( mark->get());
+ shell->GotoMark( *mark );
shell->GetPageNum( page, dummy );
shell->Pop(SwCursorShell::PopMode::DeleteCurrent);
return page;