From 1ab27f9ae6f32c7502884c02c2217bbdcf035c48 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 8 Oct 2018 16:19:20 +0200 Subject: loplugin:constfields in scaddins,sccomp Change-Id: I4d21cfcc65c099fbddbe5146fc1b8a6257971e32 Reviewed-on: https://gerrit.libreoffice.org/61555 Tested-by: Jenkins Reviewed-by: Noel Grandin --- scaddins/source/analysis/analysishelper.hxx | 28 ++++++++++++++-------------- scaddins/source/datefunc/datefunc.hxx | 18 +++++++++--------- scaddins/source/pricing/pricing.hxx | 18 +++++++++--------- 3 files changed, 32 insertions(+), 32 deletions(-) (limited to 'scaddins/source') diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx index f0eaac926dfb..05f3e7afdd8a 100644 --- a/scaddins/source/analysis/analysishelper.hxx +++ b/scaddins/source/analysis/analysishelper.hxx @@ -198,11 +198,11 @@ struct FuncDataBase const sal_Char* pIntName; const char* pUINameID; // resource ID to UI name const char** pDescrID; // resource ID to description, parameter names and ~ description - bool bDouble; // name already exist in Calc - bool bWithOpt; // first parameter is internal + bool const bDouble; // name already exist in Calc + bool const bWithOpt; // first parameter is internal const char** pCompListID; // list of valid names - sal_uInt16 nNumOfParams; // number of named / described parameters - FDCategory eCat; // function category + sal_uInt16 const nNumOfParams; // number of named / described parameters + FDCategory const eCat; // function category const char* pSuffix; // if bDouble, append a suffix other than "_ADD" for UI }; @@ -210,15 +210,15 @@ struct FuncDataBase class FuncData final { private: - OUString aIntName; + OUString const aIntName; const char* pUINameID; const char** pDescrID; // leads also to parameter descriptions! - bool bDouble; // flag for names that already exist in Calc - bool bWithOpt; // has internal parameter on first position + bool const bDouble; // flag for names that already exist in Calc + bool const bWithOpt; // has internal parameter on first position - sal_uInt16 nParam; // num of parameters + sal_uInt16 const nParam; // num of parameters std::vector aCompList; // list of all valid names - FDCategory eCat; // function category + FDCategory const eCat; // function category OUString aSuffix; // if bDouble and not empty, append a suffix other than "_ADD" for UI public: @@ -521,10 +521,10 @@ class ConvertData { protected: friend class ConvertDataList; - double fConst; - OUString aName; - ConvertDataClass eClass; - bool bPrefixSupport; + double const fConst; + OUString const aName; + ConvertDataClass const eClass; + bool const bPrefixSupport; public: ConvertData( const sal_Char pUnitName[], @@ -551,7 +551,7 @@ public: class ConvertDataLinear final : public ConvertData { - double fOffs; + double const fOffs; public: inline ConvertDataLinear( const sal_Char pUnitName[], diff --git a/scaddins/source/datefunc/datefunc.hxx b/scaddins/source/datefunc/datefunc.hxx index 51b2899daeef..10e98c0c8e30 100644 --- a/scaddins/source/datefunc/datefunc.hxx +++ b/scaddins/source/datefunc/datefunc.hxx @@ -50,23 +50,23 @@ struct ScaFuncDataBase const char* pUINameID; // resource ID to UI name const char** pDescrID; // resource ID to description, parameter names and ~ description const char** pCompListID; // list of valid names - sal_uInt16 nParamCount; // number of named / described parameters - ScaCategory eCat; // function category - bool bDouble; // name already exist in Calc - bool bWithOpt; // first parameter is internal + sal_uInt16 const nParamCount; // number of named / described parameters + ScaCategory const eCat; // function category + bool const bDouble; // name already exist in Calc + bool const bWithOpt; // first parameter is internal }; class ScaFuncData final { private: - OUString aIntName; // internal name (get***) + OUString const aIntName; // internal name (get***) const char* pUINameID; // resource ID to UI name const char** pDescrID; // leads also to parameter descriptions! - sal_uInt16 nParamCount; // num of parameters + sal_uInt16 const nParamCount; // num of parameters std::vector aCompList; // list of all valid names - ScaCategory eCat; // function category - bool bDouble; // name already exist in Calc - bool bWithOpt; // first parameter is internal + ScaCategory const eCat; // function category + bool const bDouble; // name already exist in Calc + bool const bWithOpt; // first parameter is internal public: ScaFuncData(const ScaFuncDataBase& rBaseData); diff --git a/scaddins/source/pricing/pricing.hxx b/scaddins/source/pricing/pricing.hxx index 6ee27108c2ba..76257fbd8e78 100644 --- a/scaddins/source/pricing/pricing.hxx +++ b/scaddins/source/pricing/pricing.hxx @@ -66,23 +66,23 @@ struct ScaFuncDataBase // (English) function names again. // see also: GetExcelName() or GetCompNames() or getCompatibilityNames() const char* pCompName; - sal_uInt16 nParamCount; // number of named / described parameters - ScaCategory eCat; // function category - bool bDouble; // name already exist in Calc - bool bWithOpt; // first parameter is internal + sal_uInt16 const nParamCount; // number of named / described parameters + ScaCategory const eCat; // function category + bool const bDouble; // name already exist in Calc + bool const bWithOpt; // first parameter is internal }; class ScaFuncData final { private: - OUString aIntName; // internal name (get***) + OUString const aIntName; // internal name (get***) const char* pUINameID; // resource ID to UI name const char** pDescrID; // leads also to parameter descriptions! - sal_uInt16 nParamCount; // num of parameters + sal_uInt16 const nParamCount; // num of parameters std::vector aCompList; // list of all valid names - ScaCategory eCat; // function category - bool bDouble; // name already exist in Calc - bool bWithOpt; // first parameter is internal + ScaCategory const eCat; // function category + bool const bDouble; // name already exist in Calc + bool const bWithOpt; // first parameter is internal public: ScaFuncData(const ScaFuncDataBase& rBaseData); -- cgit