diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-26 17:47:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-27 12:19:55 +0200 |
commit | d506ff97c25b5f433aa25d8b373f1a732af493d1 (patch) | |
tree | 600e211e3426a3b43407b01d6f93e5379d608b26 /sw | |
parent | 148f45253f75bc724804f3231a0b04b2d453e0c7 (diff) |
add string_view wrappers for rtl::math::stringToDouble
Change-Id: I114bec72cb933238675e539a8388a607226827cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133455
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/docsort.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/inc/docsort.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/docsort.cxx b/sw/source/core/doc/docsort.cxx index 2c3ac9de29b5..bd86cf29c649 100644 --- a/sw/source/core/doc/docsort.cxx +++ b/sw/source/core/doc/docsort.cxx @@ -101,7 +101,7 @@ SwSortElement::~SwSortElement() { } -double SwSortElement::StrToDouble( const OUString& rStr ) +double SwSortElement::StrToDouble( std::u16string_view rStr ) { if( !pLclData ) pLclData = new LocaleDataWrapper( LanguageTag( *pLocale )); diff --git a/sw/source/core/inc/docsort.hxx b/sw/source/core/inc/docsort.hxx index 82f14c9761b2..0aad16da4a85 100644 --- a/sw/source/core/inc/docsort.hxx +++ b/sw/source/core/inc/docsort.hxx @@ -82,7 +82,7 @@ struct SwSortElement bool operator<(const SwSortElement& ) const; - static double StrToDouble(const OUString& rStr); + static double StrToDouble(std::u16string_view rStr); private: int keycompare(const SwSortElement& rCmp, sal_uInt16 nKey) const; }; |