summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-16 15:03:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-17 08:25:29 +0200
commitda5c3a1ee43dd1a07cbd1b8005488bf05432593d (patch)
tree0b3c86fdebd4620a25e1cdd20edb6cddeaeaa811 /chart2/source
parent6ee4375763854e43e549aee5a35520def2e215a2 (diff)
loplugin:staticvar in avmedia..connectivity
Change-Id: I5dcac79131c810787e8fa49df75e55cc78147860 Reviewed-on: https://gerrit.libreoffice.org/61834 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/controller/sidebar/ChartAxisPanel.cxx6
-rw-r--r--chart2/source/controller/sidebar/ChartErrorBarPanel.cxx6
-rw-r--r--chart2/source/controller/sidebar/ChartSeriesPanel.cxx6
3 files changed, 9 insertions, 9 deletions
diff --git a/chart2/source/controller/sidebar/ChartAxisPanel.cxx b/chart2/source/controller/sidebar/ChartAxisPanel.cxx
index 7ce06619413b..04e32abd392e 100644
--- a/chart2/source/controller/sidebar/ChartAxisPanel.cxx
+++ b/chart2/source/controller/sidebar/ChartAxisPanel.cxx
@@ -77,7 +77,7 @@ struct AxisLabelPosMap
css::chart::ChartAxisLabelPosition ePos;
};
-AxisLabelPosMap aLabelPosMap[] = {
+static AxisLabelPosMap const aLabelPosMap[] = {
{ 0, css::chart::ChartAxisLabelPosition_NEAR_AXIS },
{ 1, css::chart::ChartAxisLabelPosition_NEAR_AXIS_OTHER_SIDE },
{ 2, css::chart::ChartAxisLabelPosition_OUTSIDE_START },
@@ -99,7 +99,7 @@ sal_Int32 getLabelPosition(const css::uno::Reference<css::frame::XModel>& xModel
css::chart::ChartAxisLabelPosition ePos;
aAny >>= ePos;
- for (AxisLabelPosMap & i : aLabelPosMap)
+ for (AxisLabelPosMap const & i : aLabelPosMap)
{
if (i.ePos == ePos)
return i.nPos;
@@ -118,7 +118,7 @@ void setLabelPosition(const css::uno::Reference<css::frame::XModel>& xModel,
return;
css::chart::ChartAxisLabelPosition ePos;
- for (AxisLabelPosMap & i : aLabelPosMap)
+ for (AxisLabelPosMap const & i : aLabelPosMap)
{
if (i.nPos == nPos)
ePos = i.ePos;
diff --git a/chart2/source/controller/sidebar/ChartErrorBarPanel.cxx b/chart2/source/controller/sidebar/ChartErrorBarPanel.cxx
index c1b3794230e1..2d1a911f69af 100644
--- a/chart2/source/controller/sidebar/ChartErrorBarPanel.cxx
+++ b/chart2/source/controller/sidebar/ChartErrorBarPanel.cxx
@@ -121,7 +121,7 @@ struct ErrorBarTypeMap
sal_Int32 nApi;
};
-ErrorBarTypeMap aErrorBarType[] = {
+static ErrorBarTypeMap const aErrorBarType[] = {
{ 0, css::chart::ErrorBarStyle::ABSOLUTE },
{ 1, css::chart::ErrorBarStyle::RELATIVE },
{ 2, css::chart::ErrorBarStyle::FROM_DATA },
@@ -148,7 +148,7 @@ sal_Int32 getTypePos(const css::uno::Reference<css::frame::XModel>& xModel,
sal_Int32 nApi = 0;
aAny >>= nApi;
- for (ErrorBarTypeMap & i : aErrorBarType)
+ for (ErrorBarTypeMap const & i : aErrorBarType)
{
if (i.nApi == nApi)
return i.nPos;
@@ -167,7 +167,7 @@ void setTypePos(const css::uno::Reference<css::frame::XModel>& xModel,
return;
sal_Int32 nApi = 0;
- for (ErrorBarTypeMap & i : aErrorBarType)
+ for (ErrorBarTypeMap const & i : aErrorBarType)
{
if (i.nPos == nPos)
nApi = i.nApi;
diff --git a/chart2/source/controller/sidebar/ChartSeriesPanel.cxx b/chart2/source/controller/sidebar/ChartSeriesPanel.cxx
index 3d00b4e7bde4..ec6ddb944513 100644
--- a/chart2/source/controller/sidebar/ChartSeriesPanel.cxx
+++ b/chart2/source/controller/sidebar/ChartSeriesPanel.cxx
@@ -84,7 +84,7 @@ struct LabelPlacementMap
sal_Int32 nApi;
};
-LabelPlacementMap aLabelPlacementMap[] = {
+static LabelPlacementMap const aLabelPlacementMap[] = {
{ 0, css::chart::DataLabelPlacement::TOP },
{ 1, css::chart::DataLabelPlacement::BOTTOM },
{ 2, css::chart::DataLabelPlacement::CENTER },
@@ -109,7 +109,7 @@ sal_Int32 getDataLabelPlacement(const css::uno::Reference<css::frame::XModel>& x
sal_Int32 nPlacement = 0;
aAny >>= nPlacement;
- for (LabelPlacementMap & i : aLabelPlacementMap)
+ for (LabelPlacementMap const & i : aLabelPlacementMap)
{
if (i.nApi == nPlacement)
return i.nPos;
@@ -128,7 +128,7 @@ void setDataLabelPlacement(const css::uno::Reference<css::frame::XModel>& xModel
return;
sal_Int32 nApi = 0;
- for (LabelPlacementMap & i : aLabelPlacementMap)
+ for (LabelPlacementMap const & i : aLabelPlacementMap)
{
if (i.nPos == nPos)
{