summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/control/dispatch.cxx2
-rw-r--r--sfx2/source/dialog/StyleList.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index ec73bf047279..4d8008abf9c4 100644
--- a/sfx2/source/control/dispatch.cxx
+++ b/sfx2/source/control/dispatch.cxx
@@ -1524,7 +1524,7 @@ SfxSlotFilterState SfxDispatcher::IsSlotEnabledByFilter_Impl( sal_uInt16 nSID )
}
bool SfxDispatcher::IsCommandAllowedInLokReadOnlyViewMode (OUString commandName) {
- constexpr OUString allowedList[] = {
+ static constexpr OUString allowedList[] = {
u".uno:InsertAnnotation"_ustr,
u".uno:ReplyComment"_ustr,
u".uno:ResolveComment"_ustr,
diff --git a/sfx2/source/dialog/StyleList.cxx b/sfx2/source/dialog/StyleList.cxx
index b5970461bd6a..f534379e53dd 100644
--- a/sfx2/source/dialog/StyleList.cxx
+++ b/sfx2/source/dialog/StyleList.cxx
@@ -99,9 +99,9 @@ namespace
{
Color ColorHash(std::u16string_view rString)
{
- constexpr auto aSaturationArray = std::to_array<sal_uInt16>({ 90, 75, 60 });
- constexpr auto aBrightnessArray = std::to_array<sal_uInt16>({ 100, 80, 60 });
- constexpr auto aTintOrShadeArray
+ static constexpr auto aSaturationArray = std::to_array<sal_uInt16>({ 90, 75, 60 });
+ static constexpr auto aBrightnessArray = std::to_array<sal_uInt16>({ 100, 80, 60 });
+ static constexpr auto aTintOrShadeArray
= std::to_array<sal_Int16>({ 1'500, 3'000, 4'500, 6'500, 7'500 });
sal_uInt32 nStringHash = rtl_ustr_hashCode_WithLength(rString.data(), rString.length());