sc/source/core/data/dpcache.cxx | 2 +- sc/source/core/data/dpsave.cxx | 2 +- sc/source/core/data/sheetevents.cxx | 2 +- sc/source/core/tool/addincol.cxx | 2 +- sc/source/core/tool/formulaopt.cxx | 2 +- sc/source/ui/view/gridwin4.cxx | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-)
New commits: commit b0a648fa8ac8b8166bd95cbf174de6eaddf4ac70 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Thu Jul 10 10:41:03 2025 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Thu Jul 10 20:19:37 2025 +0200 const up some calc symbols Change-Id: Id89168b80e1b6e03a8f005b12c654991fc512af4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187616 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx index 19d96c50e9da..e364d27cb8d0 100644 --- a/sc/source/core/data/dpcache.cxx +++ b/sc/source/core/data/dpcache.cxx @@ -1416,7 +1416,7 @@ void dumpSourceData(const ScDPCache& rCache, tools::Long nDim, const ScDPCache:: const char* getGroupTypeName(sal_Int32 nType) { - static const char* pNames[] = { + static const char* const pNames[] = { "", "years", "quarters", "months", "days", "hours", "minutes", "seconds" }; diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx index 82494c99431b..79cdc86e5af7 100644 --- a/sc/source/core/data/dpsave.cxx +++ b/sc/source/core/data/dpsave.cxx @@ -649,7 +649,7 @@ void ScDPSaveDimension::RemoveObsoleteMembers(const MemberSetType& rMembers) void ScDPSaveDimension::Dump(int nIndent) const { - static const char* pOrientNames[] = { "hidden", "column", "row", "page", "data" }; + static const char* const pOrientNames[] = { "hidden", "column", "row", "page", "data" }; std::string aIndent(nIndent*4, ' '); cout << aIndent << "* dimension name: '" << aName << "'" << endl; diff --git a/sc/source/core/data/sheetevents.cxx b/sc/source/core/data/sheetevents.cxx index 7d2152226b68..d0a98490b262 100644 --- a/sc/source/core/data/sheetevents.cxx +++ b/sc/source/core/data/sheetevents.cxx @@ -23,7 +23,7 @@ OUString ScSheetEvents::GetEventName(ScSheetEventId nEvent) { - static const char* aEventNames[] = + static const char* const aEventNames[] = { "OnFocus", // SC_SHEETEVENT_FOCUS "OnUnfocus", // SC_SHEETEVENT_UNFOCUS diff --git a/sc/source/core/tool/addincol.cxx b/sc/source/core/tool/addincol.cxx index 4dde075e4364..3159380fca4b 100644 --- a/sc/source/core/tool/addincol.cxx +++ b/sc/source/core/tool/addincol.cxx @@ -327,7 +327,7 @@ void ScUnoAddInCollection::Initialize() static sal_uInt16 lcl_GetCategory( std::u16string_view rName ) { - static const char* aFuncNames[SC_FUNCGROUP_COUNT] = + static const char* const aFuncNames[SC_FUNCGROUP_COUNT] = { // array index = ID - 1 (ID starts at 1) // all upper case diff --git a/sc/source/core/tool/formulaopt.cxx b/sc/source/core/tool/formulaopt.cxx index 4d3027002d27..745428e36c12 100644 --- a/sc/source/core/tool/formulaopt.cxx +++ b/sc/source/core/tool/formulaopt.cxx @@ -191,7 +191,7 @@ Sequence<OUString> ScFormulaCfg::GetPropertyNames() ScFormulaCfg::PropsToIds ScFormulaCfg::GetPropNamesToId() { Sequence<OUString> aPropNames = GetPropertyNames(); - static sal_uInt16 aVals[] = { + static const sal_uInt16 aVals[] = { SCFORMULAOPT_GRAMMAR, SCFORMULAOPT_ENGLISH_FUNCNAME, SCFORMULAOPT_SEP_ARG, diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index b66208c5ebe4..6fbdeb8cb021 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -649,7 +649,7 @@ tools::Rectangle lcl_negateRectX(const tools::Rectangle& rRect) tools::Long GetSide(const tools::Rectangle& rRect, int i) { - static decltype(&tools::Rectangle::Left) GetSides[4] = { + static const decltype(&tools::Rectangle::Left) GetSides[4] = { &tools::Rectangle::Left, &tools::Rectangle::Top, &tools::Rectangle::Right, &tools::Rectangle::Bottom }; @@ -658,7 +658,7 @@ tools::Long GetSide(const tools::Rectangle& rRect, int i) Fraction GetZoom(const ScViewData& rViewData, int i) { - static decltype(&ScViewData::GetZoomX) GetZooms[4] = { + static const decltype(&ScViewData::GetZoomX) GetZooms[4] = { &ScViewData::GetZoomX, &ScViewData::GetZoomY, &ScViewData::GetZoomX, &ScViewData::GetZoomY };