summaryrefslogtreecommitdiff
path: root/forms/source/component/ImageButton.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/component/ImageButton.cxx')
-rw-r--r--forms/source/component/ImageButton.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/forms/source/component/ImageButton.cxx b/forms/source/component/ImageButton.cxx
index 51b21175dc4d..74092fba5e1c 100644
--- a/forms/source/component/ImageButton.cxx
+++ b/forms/source/component/ImageButton.cxx
@@ -143,9 +143,8 @@ void OImageButtonModel::read(const Reference<XObjectInputStream>& _rxInStream)
// OImageButtonControl
Sequence<Type> OImageButtonControl::_getTypes()
{
- static Sequence<Type> aTypes;
- if (!aTypes.getLength())
- aTypes = concatSequences(OClickableImageBaseControl::_getTypes(), OImageButtonControl_BASE::getTypes());
+ static Sequence<Type> const aTypes =
+ concatSequences(OClickableImageBaseControl::_getTypes(), OImageButtonControl_BASE::getTypes());
return aTypes;
}