diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-12 08:29:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-12 12:57:22 +0200 |
commit | c45bc08dc6e64352e11cf632b8ad868c312a62fe (patch) | |
tree | 4b665726f2a4ffb556e51915dcc5e2515c21d1b7 /svtools | |
parent | 08495e24e899c2fd52b9724d993598189e12fc7e (diff) |
loplugin:stringview whitelist getLength and isEmpty
Change-Id: I38f3410c0b25ff579879b9de1f266af4d8fd51e6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150256
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/dialogs/PlaceEditDialog.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/dialogs/PlaceEditDialog.cxx b/svtools/source/dialogs/PlaceEditDialog.cxx index 2275965e866a..4119cf5f6998 100644 --- a/svtools/source/dialogs/PlaceEditDialog.cxx +++ b/svtools/source/dialogs/PlaceEditDialog.cxx @@ -176,12 +176,12 @@ void PlaceEditDialog::InitDetails( ) // Create CMIS controls for each server type // Load the ServerType entries - bool bSkipGDrive = OUString( GDRIVE_CLIENT_ID ).isEmpty() || - OUString( GDRIVE_CLIENT_SECRET ).isEmpty(); - bool bSkipAlfresco = OUString( ALFRESCO_CLOUD_CLIENT_ID ).isEmpty() || - OUString( ALFRESCO_CLOUD_CLIENT_SECRET ).isEmpty(); - bool bSkipOneDrive= OUString( ONEDRIVE_CLIENT_ID ).isEmpty() || - OUString( ONEDRIVE_CLIENT_SECRET ).isEmpty(); + bool bSkipGDrive = std::string_view( GDRIVE_CLIENT_ID ).empty() || + std::string_view( GDRIVE_CLIENT_SECRET ).empty(); + bool bSkipAlfresco = std::string_view( ALFRESCO_CLOUD_CLIENT_ID ).empty() || + std::string_view( ALFRESCO_CLOUD_CLIENT_SECRET ).empty(); + bool bSkipOneDrive= std::string_view( ONEDRIVE_CLIENT_ID ).empty() || + std::string_view( ONEDRIVE_CLIENT_SECRET ).empty(); Sequence< OUString > aTypesUrlsList( officecfg::Office::Common::Misc::CmisServersUrls::get() ); Sequence< OUString > aTypesNamesList( officecfg::Office::Common::Misc::CmisServersNames::get() ); |