diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-10 20:54:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-11 11:22:18 +0200 |
commit | 5fe3202e99901d82b0df03e739f3a02b00441fda (patch) | |
tree | 4d143e67e8f826c9e30e4e6e0745a5c739a19f3f /sfx2 | |
parent | e9b5518b4c53cf67860a504f2f1b823625b03788 (diff) |
elide temporary OUString in GetFilter4FilterName
Change-Id: Idd51eb5f86b5d8148fe31ff69e17ce2d5724e6fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134150
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/bastyp/fltfnc.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx index 4b1e38a78aca..06d3afbd043f 100644 --- a/sfx2/source/bastyp/fltfnc.cxx +++ b/sfx2/source/bastyp/fltfnc.cxx @@ -715,12 +715,12 @@ std::shared_ptr<const SfxFilter> SfxFilterMatcher::GetFilter4UIName( std::u16str std::shared_ptr<const SfxFilter> SfxFilterMatcher::GetFilter4FilterName( const OUString& rName, SfxFilterFlags nMust, SfxFilterFlags nDont ) const { - OUString aName( rName ); - sal_Int32 nIndex = aName.indexOf(": "); + std::u16string_view aName( rName ); + sal_Int32 nIndex = rName.indexOf(": "); if ( nIndex != -1 ) { SAL_WARN( "sfx.bastyp", "Old filter name used!"); - aName = rName.copy( nIndex + 2 ); + aName = rName.subView( nIndex + 2 ); } if ( bFirstRead ) |