summaryrefslogtreecommitdiff
path: root/comphelper/source/container/enumhelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/container/enumhelper.cxx')
-rw-r--r--comphelper/source/container/enumhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/container/enumhelper.cxx b/comphelper/source/container/enumhelper.cxx
index 66ba15198232..3390fef86444 100644
--- a/comphelper/source/container/enumhelper.cxx
+++ b/comphelper/source/container/enumhelper.cxx
@@ -142,7 +142,7 @@ sal_Int32 OEnumerationByName::getLength() const
const OUString& OEnumerationByName::getElement(sal_Int32 nIndex) const
{
if (m_aNames.index() == 0)
- return std::get<css::uno::Sequence<OUString>>(m_aNames).getConstArray()[nIndex];
+ return std::get<css::uno::Sequence<OUString>>(m_aNames)[nIndex];
else
return std::get<std::vector<OUString>>(m_aNames)[nIndex];
}