[Libreoffice-commits] core.git: extensions/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Tue Nov 24 12:11:05 UTC 2020


 extensions/source/update/check/updatecheck.cxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit fbc9c0efd153a9b82a20168891c621bdc0250e19
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Nov 24 10:44:25 2020 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
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 <sbergman at redhat.com>

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();
 }
 
 


More information about the Libreoffice-commits mailing list