summaryrefslogtreecommitdiff
path: root/chart2/source/tools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-30 18:31:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-06-30 22:57:53 +0200
commit0cdcb21c90215f15e393d80eb7abdd85bdb89f64 (patch)
tree1a33b44ba08ec0bbc1c133b8f940e864d33659b1 /chart2/source/tools
parent117011cf10032e6ca93a8d502f794deb16c13a8f (diff)
Upcoming improved loplugin:staticanonymous -> redundantstatic: chart2
Change-Id: If4e61fdcf1749b2900512ae788422c435ae6af0d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97541 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'chart2/source/tools')
-rw-r--r--chart2/source/tools/CachedDataSequence.cxx2
-rw-r--r--chart2/source/tools/ConfigColorScheme.cxx2
-rw-r--r--chart2/source/tools/ErrorBar.cxx2
-rw-r--r--chart2/source/tools/InternalData.cxx2
-rw-r--r--chart2/source/tools/InternalDataProvider.cxx12
-rw-r--r--chart2/source/tools/ObjectIdentifier.cxx10
-rw-r--r--chart2/source/tools/Scaling.cxx8
-rw-r--r--chart2/source/tools/UncachedDataSequence.cxx2
8 files changed, 20 insertions, 20 deletions
diff --git a/chart2/source/tools/CachedDataSequence.cxx b/chart2/source/tools/CachedDataSequence.cxx
index 95777aa0e560..4eaf5d8f2743 100644
--- a/chart2/source/tools/CachedDataSequence.cxx
+++ b/chart2/source/tools/CachedDataSequence.cxx
@@ -42,7 +42,7 @@ using ::chart::impl::CachedDataSequence_Base;
namespace
{
-static const char lcl_aServiceName[] = "com.sun.star.comp.chart.CachedDataSequence";
+const char lcl_aServiceName[] = "com.sun.star.comp.chart.CachedDataSequence";
enum
{
diff --git a/chart2/source/tools/ConfigColorScheme.cxx b/chart2/source/tools/ConfigColorScheme.cxx
index e3bdb20fac04..5645fb22b68f 100644
--- a/chart2/source/tools/ConfigColorScheme.cxx
+++ b/chart2/source/tools/ConfigColorScheme.cxx
@@ -34,7 +34,7 @@ using ::com::sun::star::uno::Sequence;
namespace
{
-static const char aSeriesPropName[] = "Series";
+const char aSeriesPropName[] = "Series";
} // anonymous namespace
diff --git a/chart2/source/tools/ErrorBar.cxx b/chart2/source/tools/ErrorBar.cxx
index 5191e4f3d64c..77dd69705211 100644
--- a/chart2/source/tools/ErrorBar.cxx
+++ b/chart2/source/tools/ErrorBar.cxx
@@ -41,7 +41,7 @@ using namespace ::com::sun::star;
namespace
{
-static const char lcl_aServiceName[] = "com.sun.star.comp.chart2.ErrorBar";
+const char lcl_aServiceName[] = "com.sun.star.comp.chart2.ErrorBar";
bool lcl_isInternalData( const uno::Reference< chart2::data::XLabeledDataSequence > & xLSeq )
{
diff --git a/chart2/source/tools/InternalData.cxx b/chart2/source/tools/InternalData.cxx
index 5fc4d17244a4..91a9fbaa16fa 100644
--- a/chart2/source/tools/InternalData.cxx
+++ b/chart2/source/tools/InternalData.cxx
@@ -85,7 +85,7 @@ InternalData::InternalData()
, m_aColumnLabels( 0 )
{}
-static const double fDefaultData[] = {
+const double fDefaultData[] = {
9.10, 3.20, 4.54,
2.40, 8.80, 9.65,
3.10, 1.50, 3.70,
diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx
index ff89bc6dee92..9d78d9ffc758 100644
--- a/chart2/source/tools/InternalDataProvider.cxx
+++ b/chart2/source/tools/InternalDataProvider.cxx
@@ -57,12 +57,12 @@ namespace chart
namespace
{
-static const char lcl_aCategoriesRangeName[] = "categories";
-static const char lcl_aCategoriesLevelRangeNamePrefix[] = "categoriesL "; //L <-> level
-static const char lcl_aCategoriesPointRangeNamePrefix[] = "categoriesP "; //P <-> point
-static const char lcl_aCategoriesRoleName[] = "categories";
-static const char lcl_aLabelRangePrefix[] = "label ";
-static const char lcl_aCompleteRange[] = "all";
+const char lcl_aCategoriesRangeName[] = "categories";
+const char lcl_aCategoriesLevelRangeNamePrefix[] = "categoriesL "; //L <-> level
+const char lcl_aCategoriesPointRangeNamePrefix[] = "categoriesP "; //P <-> point
+const char lcl_aCategoriesRoleName[] = "categories";
+const char lcl_aLabelRangePrefix[] = "label ";
+const char lcl_aCompleteRange[] = "all";
typedef std::multimap< OUString, uno::WeakReference< chart2::data::XDataSequence > >
lcl_tSequenceMap;
diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx
index be592b9522df..2b7628f7a0ab 100644
--- a/chart2/source/tools/ObjectIdentifier.cxx
+++ b/chart2/source/tools/ObjectIdentifier.cxx
@@ -52,11 +52,11 @@ using namespace ::com::sun::star::chart2;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Any;
-static const char m_aMultiClick[] = "MultiClick";
-static const char m_aDragMethodEquals[] = "DragMethod=";
-static const char m_aDragParameterEquals[] = "DragParameter=";
-static const char m_aProtocol[] = "CID/";
-static const OUString m_aPieSegmentDragMethodServiceName("PieSegmentDragging");
+const char m_aMultiClick[] = "MultiClick";
+const char m_aDragMethodEquals[] = "DragMethod=";
+const char m_aDragParameterEquals[] = "DragParameter=";
+const char m_aProtocol[] = "CID/";
+const OUString m_aPieSegmentDragMethodServiceName("PieSegmentDragging");
namespace
{
diff --git a/chart2/source/tools/Scaling.cxx b/chart2/source/tools/Scaling.cxx
index 82ce8149b704..27a9c51a7a44 100644
--- a/chart2/source/tools/Scaling.cxx
+++ b/chart2/source/tools/Scaling.cxx
@@ -27,10 +27,10 @@ namespace com::sun::star::uno { class XComponentContext; }
namespace
{
-static const char lcl_aServiceName_Logarithmic[] = "com.sun.star.chart2.LogarithmicScaling";
-static const char lcl_aServiceName_Exponential[] = "com.sun.star.chart2.ExponentialScaling";
-static const char lcl_aServiceName_Linear[] = "com.sun.star.chart2.LinearScaling";
-static const char lcl_aServiceName_Power[] = "com.sun.star.chart2.PowerScaling";
+const char lcl_aServiceName_Logarithmic[] = "com.sun.star.chart2.LogarithmicScaling";
+const char lcl_aServiceName_Exponential[] = "com.sun.star.chart2.ExponentialScaling";
+const char lcl_aServiceName_Linear[] = "com.sun.star.chart2.LinearScaling";
+const char lcl_aServiceName_Power[] = "com.sun.star.chart2.PowerScaling";
}
diff --git a/chart2/source/tools/UncachedDataSequence.cxx b/chart2/source/tools/UncachedDataSequence.cxx
index 59fc826d3629..8851988b6d85 100644
--- a/chart2/source/tools/UncachedDataSequence.cxx
+++ b/chart2/source/tools/UncachedDataSequence.cxx
@@ -41,7 +41,7 @@ using ::chart::impl::UncachedDataSequence_Base;
namespace
{
-static const char lcl_aServiceName[] = "com.sun.star.comp.chart.UncachedDataSequence";
+const char lcl_aServiceName[] = "com.sun.star.comp.chart.UncachedDataSequence";
enum
{