extensions/source/update/check/updatecheck.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
New commits: commit fbc9c0efd153a9b82a20168891c621bdc0250e19 Author: Stephan Bergmann <[email protected]> AuthorDate: Tue Nov 24 10:44:25 2020 +0100 Commit: Stephan Bergmann <[email protected]> CommitDate: Tue Nov 24 13:10:32 2020 +0100 loplugin:stringviewparam (--enable-online-update) Change-Id: I9da6453bce5eb628eb1a4eee0863b77b548e95d7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106483 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <[email protected]> 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(); } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
