summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-17 11:23:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-17 14:15:59 +0100
commitdeee29710f4c7c43ca86cb3183fb208217051fa7 (patch)
treed565b6483b75439ec18063bef3d5c1b9b0d1f028
parent0643dab6819bdf248321d27f6b58a2cce125e51c (diff)
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@redhat.com>
-rw-r--r--extensions/source/update/check/updatehdl.cxx2
-rw-r--r--extensions/source/update/check/updatehdl.hxx6
2 files changed, 6 insertions, 2 deletions
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