diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-07-26 17:05:24 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-07-27 00:45:19 +0200 |
commit | 8fb210a2ddc0b09288316cf459bebfe196ea94fb (patch) | |
tree | ddaef024a1ca4639ee0b811b5cd430fc3eef983f /include | |
parent | 2f9d2489791ee97a169df0cea932ed7f9ba1e66c (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)
Change-Id: I8741b4c0cd51f8c244462ce28a754abc427d0df3
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 c54313ec96a2..9671bcf67918 100644 --- a/include/svl/style.hxx +++ b/include/svl/style.hxx @@ -203,9 +203,9 @@ friend class SfxStyleSheetBase; SfxStyleSheetBasePool_Impl *pImp; -private: - SVL_DLLPRIVATE SfxStyleSheetIterator& GetIterator_Impl(); protected: + SfxStyleSheetIterator& GetIterator_Impl(); + OUString aAppName; SfxItemPool& rPool; SfxStyles aStyles; |