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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user