summaryrefslogtreecommitdiffstats
path: root/framework/source/uifactory/menubarfactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uifactory/menubarfactory.cxx')
-rw-r--r--framework/source/uifactory/menubarfactory.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/source/uifactory/menubarfactory.cxx b/framework/source/uifactory/menubarfactory.cxx
index 56f84c15de34..95c62a71afc5 100644
--- a/framework/source/uifactory/menubarfactory.cxx
+++ b/framework/source/uifactory/menubarfactory.cxx
@@ -133,6 +133,7 @@ void MenuBarFactory::CreateUIElement(const OUString& ResourceURL
nURLPropertyIndex++;
Sequence< Any > aPropSeq( nSeqLength );
+ auto aPropSeqRange = asNonConstRange(aPropSeq);
for ( sal_Int32 n = 0; n < aPropSeq.getLength(); n++ )
{
PropertyValue aPropValue;
@@ -149,7 +150,7 @@ void MenuBarFactory::CreateUIElement(const OUString& ResourceURL
else
aPropValue = Args[n];
- aPropSeq[n] <<= aPropValue;
+ aPropSeqRange[n] <<= aPropValue;
}
SolarMutexGuard aGuard;