diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-13 14:33:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-13 19:02:00 +0200 |
commit | 1aced94715b73cc0de2ab91963a4f2a2102d845a (patch) | |
tree | e87ae3df4d0ec9940bdaaf99ec045981070c250e /sfx2/source/appl | |
parent | d2572dc9d6c7cda9d6e08e46c42048e12e4f04e0 (diff) |
use more string_view in sfx2
Change-Id: I36db3d26a576adeb4d2427c28320096d5464f565
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132964
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r-- | sfx2/source/appl/childwin.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx index 5cc448b2ccc3..a3c3a6ae1f73 100644 --- a/sfx2/source/appl/childwin.cxx +++ b/sfx2/source/appl/childwin.cxx @@ -121,12 +121,12 @@ bool GetPosSizeFromString( std::u16string_view rStr, Point& rPos, Size& rSize ) return rSize.Width() >= 0 && rSize.Height() >= 0; } -bool GetSplitSizeFromString( const OUString& rStr, Size& rSize ) +bool GetSplitSizeFromString( std::u16string_view rStr, Size& rSize ) { - sal_Int32 nIndex = rStr.indexOf( ',' ); - if ( nIndex != -1 ) + size_t nIndex = rStr.find( ',' ); + if ( nIndex != std::u16string_view::npos ) { - OUString aStr = rStr.copy( nIndex+1 ); + std::u16string_view aStr = rStr.substr( nIndex+1 ); sal_Int32 nCount = comphelper::string::getTokenCount(aStr, ';'); if ( nCount != 2 ) |