summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-18 10:10:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-24 09:45:04 +0100
commitbb06f51308428500c9c8d11ae05f0aa03ecc179c (patch)
treeb18620e8572ed6d4c43c8605660d59f5f7a7e531 /fpicker
parent42e8e16cf93dcf944e5c1106f76aaa32057c0397 (diff)
loplugin:stringviewparam extend to comparison operators
which means that some call sites have to change to use unicode string literals i.e. u"foo" instead of "foo" Change-Id: Ie51c3adf56d343dd1d1710777f9d2a43ee66221c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106125 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/fileview.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/fpicker/source/office/fileview.cxx b/fpicker/source/office/fileview.cxx
index ad82be6c0463..be49c1ba37c6 100644
--- a/fpicker/source/office/fileview.cxx
+++ b/fpicker/source/office/fileview.cxx
@@ -301,13 +301,13 @@ public:
void CreateDisplayText_Impl();
void SortFolderContent_Impl();
- void EntryRemoved( const OUString& rURL );
+ void EntryRemoved( std::u16string_view rURL );
void EntryRenamed( OUString& rURL,
const OUString& rName );
const SortingData_Impl& FolderInserted( const OUString& rURL,
const OUString& rTitle );
- int GetEntryPos( const OUString& rURL );
+ int GetEntryPos( std::u16string_view rURL );
void SetViewMode( FileViewMode eMode );
@@ -1668,7 +1668,7 @@ void SvtFileView_Impl::SortFolderContent_Impl()
}
-void SvtFileView_Impl::EntryRemoved( const OUString& rURL )
+void SvtFileView_Impl::EntryRemoved( std::u16string_view rURL )
{
::osl::MutexGuard aGuard( maMutex );
@@ -1727,7 +1727,7 @@ const SortingData_Impl& SvtFileView_Impl::FolderInserted( const OUString& rURL,
return *maContent.back();
}
-int SvtFileView_Impl::GetEntryPos(const OUString& rURL)
+int SvtFileView_Impl::GetEntryPos(std::u16string_view rURL)
{
::osl::MutexGuard aGuard( maMutex );