summaryrefslogtreecommitdiff
path: root/chart2
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 /chart2
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 'chart2')
-rw-r--r--chart2/source/inc/ConfigColorScheme.hxx3
-rw-r--r--chart2/source/tools/ConfigColorScheme.cxx2
2 files changed, 3 insertions, 2 deletions
diff --git a/chart2/source/inc/ConfigColorScheme.hxx b/chart2/source/inc/ConfigColorScheme.hxx
index 5eb117781b16..438d5f6ad4d9 100644
--- a/chart2/source/inc/ConfigColorScheme.hxx
+++ b/chart2/source/inc/ConfigColorScheme.hxx
@@ -24,6 +24,7 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <memory>
+#include <string_view>
namespace com::sun::star::uno { class XComponentContext; }
@@ -53,7 +54,7 @@ public:
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
// ____ ConfigItemListener ____
- void notify( const OUString & rPropertyName );
+ void notify( std::u16string_view rPropertyName );
protected:
// ____ XColorScheme ____
diff --git a/chart2/source/tools/ConfigColorScheme.cxx b/chart2/source/tools/ConfigColorScheme.cxx
index 2aaf672800ac..466e26ae88b3 100644
--- a/chart2/source/tools/ConfigColorScheme.cxx
+++ b/chart2/source/tools/ConfigColorScheme.cxx
@@ -157,7 +157,7 @@ void ConfigColorScheme::retrieveConfigColors()
return nDefaultColors[ nIndex % nMaxDefaultColors ];
}
-void ConfigColorScheme::notify( const OUString & rPropertyName )
+void ConfigColorScheme::notify( std::u16string_view rPropertyName )
{
if( rPropertyName == aSeriesPropName )
m_bNeedsUpdate = true;