summaryrefslogtreecommitdiff
path: root/forms/source/component/ListBox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/component/ListBox.cxx')
-rw-r--r--forms/source/component/ListBox.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index d87da0bd7eb5..e0b593c19495 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -1883,8 +1883,8 @@ namespace frm
bool bModified(false);
Any aValue = xSet->getPropertyValue(PROPERTY_SELECT_SEQ);
- Sequence<sal_Int16>& rSelection = *(Sequence<sal_Int16> *)aValue.getValue();
- Sequence<sal_Int16>& rOldSelection = *(Sequence<sal_Int16> *)m_aCurrentSelection.getValue();
+ Sequence<sal_Int16> const & rSelection = *static_cast<Sequence<sal_Int16> const *>(aValue.getValue());
+ Sequence<sal_Int16> const & rOldSelection = *static_cast<Sequence<sal_Int16> const *>(m_aCurrentSelection.getValue());
sal_Int32 nLen = rSelection.getLength();
if (nLen != rOldSelection.getLength())
bModified = true;