diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-05-15 11:59:35 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2022-05-16 09:04:24 +0200 |
commit | b8aa4d7caf82903b3ba1ff45483756db6835cc60 (patch) | |
tree | a9bb802f1c1328d6673ae6be0d9f6551025d4bca /svl | |
parent | 2fe18c214be06065a2966ffa3d4af5db6606b7ae (diff) |
make SharedString move operator= inline (tdf#126109)
Calc uses SharedString in mdds::multi_type_vector, which may move
contents of its blocks on some operations, and making this inline
makes such operations faster.
Change-Id: I67d14639cf253c56b8cca5b2837bb06bc9afd7d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134339
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/misc/sharedstring.cxx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/svl/source/misc/sharedstring.cxx b/svl/source/misc/sharedstring.cxx index e1f2d4feed0f..1bb05c6ace50 100644 --- a/svl/source/misc/sharedstring.cxx +++ b/svl/source/misc/sharedstring.cxx @@ -43,22 +43,6 @@ SharedString& SharedString::operator= ( const SharedString& r ) return *this; } -SharedString& SharedString::operator=(SharedString&& r) noexcept -{ - if (mpData) - rtl_uString_release(mpData); - if (mpDataIgnoreCase) - rtl_uString_release(mpDataIgnoreCase); - - mpData = r.mpData; - mpDataIgnoreCase = r.mpDataIgnoreCase; - - r.mpData = nullptr; - r.mpDataIgnoreCase = nullptr; - - return *this; -} - bool SharedString::operator== ( const SharedString& r ) const { // Compare only the original (not case-folded) string. |