[Libreoffice-commits] core.git: extensions/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Tue Nov 17 13:16:37 UTC 2020
extensions/source/update/check/updatehdl.cxx | 2 +-
extensions/source/update/check/updatehdl.hxx | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
New commits:
commit deee29710f4c7c43ca86cb3183fb208217051fa7
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Nov 17 11:23:55 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Nov 17 14:15:59 2020 +0100
loplugin:stringviewparam (--enable-online-update)
Change-Id: I3284a2460845c0b4816ad0148560e82da9d4eb78
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105975
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/extensions/source/update/check/updatehdl.cxx b/extensions/source/update/check/updatehdl.cxx
index a7a8c295beed..e2d95bc8e84e 100644
--- a/extensions/source/update/check/updatehdl.cxx
+++ b/extensions/source/update/check/updatehdl.cxx
@@ -916,7 +916,7 @@ bool UpdateHandler::showWarning( const OUString &rWarningText,
}
-bool UpdateHandler::showOverwriteWarning( const OUString& rFileName ) const
+bool UpdateHandler::showOverwriteWarning( std::u16string_view rFileName ) const
{
return showWarning(
(msReloadWarning
diff --git a/extensions/source/update/check/updatehdl.hxx b/extensions/source/update/check/updatehdl.hxx
index 7bdddf4c15de..71d59a97edd5 100644
--- a/extensions/source/update/check/updatehdl.hxx
+++ b/extensions/source/update/check/updatehdl.hxx
@@ -20,6 +20,10 @@
#ifndef INCLUDED_EXTENSIONS_SOURCE_UPDATE_CHECK_UPDATEHDL_HXX
#define INCLUDED_EXTENSIONS_SOURCE_UPDATE_CHECK_UPDATEHDL_HXX
+#include <sal/config.h>
+
+#include <string_view>
+
#include <osl/mutex.hxx>
#include <com/sun/star/uno/Any.h>
#include <com/sun/star/uno/Reference.h>
@@ -172,7 +176,7 @@ public:
OUString getDefaultInstErrMsg();
bool showWarning( const OUString &rWarning ) const;
bool showWarning( const OUString &rWarning, const OUString& rBtnText_1, const OUString& rBtnText_2 ) const;
- bool showOverwriteWarning( const OUString &rFileName ) const;
+ bool showOverwriteWarning( std::u16string_view rFileName ) const;
bool showOverwriteWarning() const;
// Allows runtime exceptions to be thrown by const methods
More information about the Libreoffice-commits
mailing list