diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-26 14:03:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-27 20:31:14 +0200 |
commit | 48e279c6748bf023fba12fdc3f4cee402f611c6e (patch) | |
tree | 2e1b3a20ccd71f47a66938f882c1fe9d5e947bb4 /sw/source/uibase/uiview/view2.cxx | |
parent | f3665d2a42b39814764f3eb9e20498b8a4be1d00 (diff) |
use string_view in INetURLObject::decode
Change-Id: I10e04970ceac33c9c3fbfd0182dd2140e06cb80b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114658
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/uiview/view2.cxx')
-rw-r--r-- | sw/source/uibase/uiview/view2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx index db33b8c77c1d..39752c694d31 100644 --- a/sw/source/uibase/uiview/view2.cxx +++ b/sw/source/uibase/uiview/view2.cxx @@ -2155,10 +2155,10 @@ static auto JumpToTOXMark(SwWrtShell & rSh, OUString const& rName) -> bool } } -bool SwView::JumpToSwMark( const OUString& rMark ) +bool SwView::JumpToSwMark( std::u16string_view rMark ) { bool bRet = false; - if( !rMark.isEmpty() ) + if( !rMark.empty() ) { // place bookmark at top-center bool bSaveCC = m_bCenterCursor; |