summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-24 10:44:25 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-24 13:10:32 +0100
commitfbc9c0efd153a9b82a20168891c621bdc0250e19 (patch)
tree7c27e6eaa120550290aeeb41ce3d72d7e1bd0f22 /extensions
parent185037a39980bcf00ef3d9bb14ba935227c42938 (diff)
loplugin:stringviewparam (--enable-online-update)
Change-Id: I9da6453bce5eb628eb1a4eee0863b77b548e95d7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106483 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/update/check/updatecheck.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/source/update/check/updatecheck.cxx b/extensions/source/update/check/updatecheck.cxx
index b6d32179ac49..4a8017a2d805 100644
--- a/extensions/source/update/check/updatecheck.cxx
+++ b/extensions/source/update/check/updatecheck.cxx
@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <string_view>
+
#include <comphelper/scopeguard.hxx>
#include <config_folders.h>
@@ -102,9 +106,9 @@ OUString getBaseInstallation()
#endif
-bool isObsoleteUpdateInfo(const OUString& rBuildId)
+bool isObsoleteUpdateInfo(std::u16string_view rBuildId)
{
- return rBuildId != getBuildId() && !rBuildId.isEmpty();
+ return rBuildId != getBuildId() && !rBuildId.empty();
}