use more constexpr

Change-Id: Ifc319bdc9ed0cf095a99f6ea7cac068f52bc31b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187748
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara
2025-07-12 01:15:46 +02:00
parent 3af3b87c79
commit 77816cef91
8 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -200,7 +200,7 @@ TypeList const comboBoxList = {&typeXComboBox, 1};
TypeList const listBoxList = {&typeXListBox, 1};
//this array stores the OO event to VBA event translation info
static TranslatePropMap aTranslatePropMap_Impl[] =
constexpr TranslatePropMap aTranslatePropMap_Impl[] =
{
{ u"actionPerformed"_ustr, { u"_Change"_ustr, nullptr, DenyType, static_cast<void const *>(&radioButtonList) } },
// actionPerformed ooo event
@@ -253,7 +253,7 @@ static EventInfoHash& getEventTransInfo()
{
EventInfoHash tmp;
OUString sEventInfo;
TranslatePropMap* pTransProp = aTranslatePropMap_Impl;
const TranslatePropMap* pTransProp = aTranslatePropMap_Impl;
int nCount = SAL_N_ELEMENTS(aTranslatePropMap_Impl);
int i = 0;