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>
This commit is contained in:
Stephan Bergmann
2020-06-30 18:31:56 +02:00
parent 117011cf10
commit 0cdcb21c90
16 changed files with 31 additions and 31 deletions

View File

@@ -86,8 +86,8 @@ namespace impl
/// Constants for moving the series.
namespace {
static bool const MOVE_SERIES_FORWARD = true;
static bool const MOVE_SERIES_BACKWARD = false;
bool const MOVE_SERIES_FORWARD = true;
bool const MOVE_SERIES_BACKWARD = false;
}
/** Represents the current state of the controller (needed for issue 63017).

View File

@@ -48,7 +48,7 @@ using ::com::sun::star::uno::Sequence;
namespace
{
static const char lcl_aServiceName[] = "com.sun.star.comp.chart.ElementSelectorToolbarController";
const char lcl_aServiceName[] = "com.sun.star.comp.chart.ElementSelectorToolbarController";
}
SelectorListBox::SelectorListBox(vcl::Window* pParent)

View File

@@ -71,7 +71,7 @@ struct AxisLabelPosMap
css::chart::ChartAxisLabelPosition ePos;
};
static AxisLabelPosMap const aLabelPosMap[] = {
AxisLabelPosMap const aLabelPosMap[] = {
{ 0, css::chart::ChartAxisLabelPosition_NEAR_AXIS },
{ 1, css::chart::ChartAxisLabelPosition_NEAR_AXIS_OTHER_SIDE },
{ 2, css::chart::ChartAxisLabelPosition_OUTSIDE_START },

View File

@@ -112,7 +112,7 @@ struct ErrorBarTypeMap
sal_Int32 nApi;
};
static ErrorBarTypeMap const aErrorBarType[] = {
ErrorBarTypeMap const aErrorBarType[] = {
{ 0, css::chart::ErrorBarStyle::ABSOLUTE },
{ 1, css::chart::ErrorBarStyle::RELATIVE },
{ 2, css::chart::ErrorBarStyle::FROM_DATA },

View File

@@ -74,7 +74,7 @@ struct LabelPlacementMap
sal_Int32 nApi;
};
static LabelPlacementMap const aLabelPlacementMap[] = {
LabelPlacementMap const aLabelPlacementMap[] = {
{ 0, css::chart::DataLabelPlacement::TOP },
{ 1, css::chart::DataLabelPlacement::BOTTOM },
{ 2, css::chart::DataLabelPlacement::CENTER },

View File

@@ -31,7 +31,7 @@ namespace com::sun::star::uno { class XComponentContext; }
namespace
{
static const char CHART2_COOSYSTEM_CARTESIAN_SERVICE_NAME[] = "com.sun.star.chart2.CoordinateSystems.Cartesian";
const char CHART2_COOSYSTEM_CARTESIAN_SERVICE_NAME[] = "com.sun.star.chart2.CoordinateSystems.Cartesian";
}

View File

@@ -31,7 +31,7 @@ using ::com::sun::star::uno::Sequence;
namespace
{
static const char CHART2_COOSYSTEM_POLAR_SERVICE_NAME[] = "com.sun.star.chart2.CoordinateSystems.Polar";
const char CHART2_COOSYSTEM_POLAR_SERVICE_NAME[] = "com.sun.star.chart2.CoordinateSystems.Polar";
}

View File

@@ -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
{

View File

@@ -34,7 +34,7 @@ using ::com::sun::star::uno::Sequence;
namespace
{
static const char aSeriesPropName[] = "Series";
const char aSeriesPropName[] = "Series";
} // anonymous namespace

View File

@@ -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 )
{

View File

@@ -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,

View File

@@ -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;

View File

@@ -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
{

View File

@@ -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";
}

View File

@@ -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
{

View File

@@ -25,10 +25,10 @@
namespace
{
static const char lcl_aServiceName_DateScaling[] = "com.sun.star.chart2.DateScaling";
static const char lcl_aServiceName_InverseDateScaling[] = "com.sun.star.chart2.InverseDateScaling";
const char lcl_aServiceName_DateScaling[] = "com.sun.star.chart2.DateScaling";
const char lcl_aServiceName_InverseDateScaling[] = "com.sun.star.chart2.InverseDateScaling";
static const double lcl_fNumberOfMonths = 12.0;//todo: this needs to be offered by basic tools Date class if it should be more generic
const double lcl_fNumberOfMonths = 12.0;//todo: this needs to be offered by basic tools Date class if it should be more generic
}
namespace chart