summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-22 14:08:08 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-12-27 11:26:32 +0100
commit9013dc1650aa8400f63da5f584df9058b1740eb3 (patch)
treea1ba4f196070459d5d823d942e5a0a121b09ea3d /include
parentdb97e00893c204226a2eab2d95c9837bce3cddb0 (diff)
Simplify loplugin:stringviewparam comparison operator handling
In practice, it works fine to look at all of them, regardless of actual argument types. Change-Id: Ifc49cbcd6003c8837c1b3f81d432c59fb0657bf1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108366 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/comphelper/graphicmimetype.hxx6
-rw-r--r--include/sfx2/XmlIdRegistry.hxx2
-rw-r--r--include/sfx2/mailmodelapi.hxx3
-rw-r--r--include/xmloff/SettingsExportHelper.hxx6
4 files changed, 13 insertions, 4 deletions
diff --git a/include/comphelper/graphicmimetype.hxx b/include/comphelper/graphicmimetype.hxx
index 53ffd49888e4..94a3cd3cd093 100644
--- a/include/comphelper/graphicmimetype.hxx
+++ b/include/comphelper/graphicmimetype.hxx
@@ -10,6 +10,10 @@
#ifndef INCLUDED_COMPHELPER_GMH_HXX
#define INCLUDED_COMPHELPER_GMH_HXX
+#include <sal/config.h>
+
+#include <string_view>
+
#include <comphelper/comphelperdllapi.h>
#include <rtl/ustring.hxx>
#include <vcl/salctype.hxx>
@@ -30,7 +34,7 @@ namespace comphelper
class COMPHELPER_DLLPUBLIC GraphicMimeTypeHelper
{
public:
- static OUString GetMimeTypeForExtension(const OString& rExt);
+ static OUString GetMimeTypeForExtension(std::string_view rExt);
static OUString
GetMimeTypeForXGraphic(const css::uno::Reference<css::graphic::XGraphic>& xGraphic);
static OUString
diff --git a/include/sfx2/XmlIdRegistry.hxx b/include/sfx2/XmlIdRegistry.hxx
index 9e08bf4bba06..a2b4b2129760 100644
--- a/include/sfx2/XmlIdRegistry.hxx
+++ b/include/sfx2/XmlIdRegistry.hxx
@@ -41,7 +41,7 @@ namespace sfx2 {
/** is i_rIdref a valid NCName ? */
bool SFX2_DLLPUBLIC isValidNCName(std::u16string_view i_rIdref);
-bool SFX2_DLLPUBLIC isValidXmlId(OUString const & i_rStreamName,
+bool SFX2_DLLPUBLIC isValidXmlId(std::u16string_view i_rStreamName,
std::u16string_view i_rIdref);
// XML ID handling ---------------------------------------------------
diff --git a/include/sfx2/mailmodelapi.hxx b/include/sfx2/mailmodelapi.hxx
index 8ee361cd7908..f701b98972ae 100644
--- a/include/sfx2/mailmodelapi.hxx
+++ b/include/sfx2/mailmodelapi.hxx
@@ -23,6 +23,7 @@
#include <rtl/ustring.hxx>
#include <sfx2/dllapi.h>
#include <vector>
+#include <string_view>
#include <memory>
namespace com::sun::star::beans { struct PropertyValue; }
@@ -59,7 +60,7 @@ private:
static SaveResult ShowFilterOptionsDialog( const css::uno::Reference< css::lang::XMultiServiceFactory >& xSMGR,
const css::uno::Reference< css::frame::XModel >& xModel,
const OUString& rFilterName,
- const OUString& rType,
+ std::u16string_view rType,
bool bModified,
sal_Int32& rNumArgs,
css::uno::Sequence< css::beans::PropertyValue >& rArgs );
diff --git a/include/xmloff/SettingsExportHelper.hxx b/include/xmloff/SettingsExportHelper.hxx
index 784c8dd67075..0ee9f3ea4ee3 100644
--- a/include/xmloff/SettingsExportHelper.hxx
+++ b/include/xmloff/SettingsExportHelper.hxx
@@ -20,6 +20,10 @@
#ifndef INCLUDED_XMLOFF_SETTINGSEXPORTHELPER_HXX
#define INCLUDED_XMLOFF_SETTINGSEXPORTHELPER_HXX
+#include <sal/config.h>
+
+#include <string_view>
+
#include <xmloff/dllapi.h>
#include <com/sun/star/uno/Reference.hxx>
@@ -47,7 +51,7 @@ class XMLOFF_DLLPUBLIC XMLSettingsExportHelper
css::uno::Reference< css::util::XStringSubstitution > mxStringSubstitution;
- void ManipulateSetting( css::uno::Any& rAny, const OUString& rName ) const;
+ void ManipulateSetting( css::uno::Any& rAny, std::u16string_view rName ) const;
void CallTypeFunction(const css::uno::Any& rAny,
const OUString& rName) const;