diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-12-20 13:28:53 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-12-21 15:30:40 +0100 |
commit | ed29dc6b3b4d7baa1a85621cceb940707454d87d (patch) | |
tree | ab7e0adf38a96c62d96f2e585348c5ebde6aec97 /sw/inc | |
parent | 3c96ded851bc6887693e4ecbc1f5961dc430613c (diff) |
Make SwSection::GetSectionName() return a reference to the name
Has a small but measureable impact on the time it takes to load a
specific pathological (huge) customer document. The load time drops
from 1min 46s to 1min 38s on my machine.
Reviewed-on: https://gerrit.libreoffice.org/46847
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
(cherry picked from commit 9675f307fbd7961b3d00f810dad3eacc9920e07d)
Change-Id: I93b603f369528187980d644a5364fa9bcf2f4615
Reviewed-on: https://gerrit.libreoffice.org/46904
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/section.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/section.hxx b/sw/inc/section.hxx index e2584dc27e11..7eeadf7c0ebd 100644 --- a/sw/inc/section.hxx +++ b/sw/inc/section.hxx @@ -166,7 +166,7 @@ public: void SetSectionData(SwSectionData const& rData); - OUString GetSectionName() const { return m_Data.GetSectionName(); } + const OUString& GetSectionName() const { return m_Data.GetSectionName(); } void SetSectionName(OUString const& rName){ m_Data.SetSectionName(rName); } SectionType GetType() const { return m_Data.GetType(); } void SetType(SectionType const eType) { return m_Data.SetType(eType); } |