diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-07-26 17:05:24 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-07-28 13:10:54 +0000 |
commit | a82d8e86dd372f624b8c3b075582084ba237227c (patch) | |
tree | ab29bdca3507eaab662c7a66128ac2170c7ea91e /include | |
parent | 336efde38d46fcf57ae7937c2ce4ffd35f052a10 (diff) |
fdo#67303: sw: speed up setting IsHidden property on styles
Importing an ODF document with 4089 styles is ridiculously slow,
spending most of the time in SwStyleSheetIterator::First() to reset
an existing iterator.
Since the SwStyleSheetIterator can handle the case when First() has not
been called anyway, just add a new method that resets the bFirstCalled
flag, which takes next to no time.
(regression from a0dcf961879ab644a52f801f65466756cb144b72)
(cherry picked from commit 8fb210a2ddc0b09288316cf459bebfe196ea94fb)
Conflicts:
include/svl/style.hxx
Change-Id: I8741b4c0cd51f8c244462ce28a754abc427d0df3
Reviewed-on: https://gerrit.libreoffice.org/5136
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/style.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svl/style.hxx b/include/svl/style.hxx index af58cbc44327..97082312b095 100644 --- a/include/svl/style.hxx +++ b/include/svl/style.hxx @@ -204,9 +204,9 @@ friend class SfxStyleSheetBase; SfxStyleSheetBasePool_Impl *pImp; -private: - SVL_DLLPRIVATE SfxStyleSheetIterator& GetIterator_Impl(); protected: + SfxStyleSheetIterator& GetIterator_Impl(); + String aAppName; SfxItemPool& rPool; SfxStyles aStyles; |