summaryrefslogtreecommitdiff
path: root/sw/inc/ndtxt.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-05-30 12:12:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-30 14:05:40 +0200
commit5a74ef3d249ea88cf0bf1f333014809f652a6a41 (patch)
tree2e018ff34bf67f93b145105b73ba415c8bd24bc3 /sw/inc/ndtxt.hxx
parent460cf721da261e6c9d7388fd4cddf4b66fc7b1b7 (diff)
tdf#125372 writer, file with lots of hints very slow to open, part7
Takes load time from 1m45 to 22s Instead of (1) taking a list of SwTextAttrs (2) invoking a method that inserts a new one (3) taking a new list and doing a delta on the list, just the information about the new SwTextAttr up the stack and avoid all that work. Change-Id: Iec88618af696299aaba65f43bc33b1a5f030fac0 Reviewed-on: https://gerrit.libreoffice.org/73195 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/ndtxt.hxx')
-rw-r--r--sw/inc/ndtxt.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx
index debe937dd0bf..d8ab09b60f23 100644
--- a/sw/inc/ndtxt.hxx
+++ b/sw/inc/ndtxt.hxx
@@ -295,7 +295,8 @@ public:
set them only in AutoAttrSet (SwContentNode::SetAttr). */
bool SetAttr( const SfxItemSet& rSet,
sal_Int32 nStt, sal_Int32 nEnd,
- const SetAttrMode nMode = SetAttrMode::DEFAULT );
+ const SetAttrMode nMode = SetAttrMode::DEFAULT,
+ SwTextAttr **ppNewTextAttr = nullptr);
/** Query the attributes of textnode over the range.
Introduce 4th optional parameter <bMergeIndentValuesOfNumRule>.
If <bMergeIndentValuesOfNumRule> == true, the indent attributes of