diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-06-08 22:44:40 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-06-09 15:24:13 +0200 |
commit | 55cd7bde81910f85fffb778f3c0a6ad143dff392 (patch) | |
tree | 4d278d71adb44487f224df44a1b355de02c01307 /svx | |
parent | e0e1c3bcc9445c177a4d97ba11639ae4f2f83163 (diff) |
tdf#126025: Non-const GetPropertyValueByName must use non-const Sequence []
...which internally calls getArray to make sure it references a unique sequence.
Regression introduced with 85f28ec44a2c169c91dac9346e9c71feda6a6cab "Clean up C-
style casts from pointers to void".
Change-Id: Id80b75f06322c65fc31040cc0b1892fe3a0aeaab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95862
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
(cherry picked from commit dd74e75c2692ee50535e2a9c7cf344fafc0e724a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95872
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/items/customshapeitem.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/items/customshapeitem.cxx b/svx/source/items/customshapeitem.cxx index 8626d893ed7e..57ec15e6b5e3 100644 --- a/svx/source/items/customshapeitem.cxx +++ b/svx/source/items/customshapeitem.cxx @@ -90,7 +90,7 @@ css::uno::Any* SdrCustomShapeGeometryItem::GetPropertyValueByName( const OUStrin PropertyPairHashMap::iterator aHashIter( aPropPairHashMap.find( PropertyPair( rSequenceName, rPropName ) ) ); if ( aHashIter != aPropPairHashMap.end() ) { - pRet = const_cast<css::uno::Any *>(&(*rSecSequence)[ (*aHashIter).second ].Value); + pRet = &const_cast<css::uno::Sequence<css::beans::PropertyValue> &>(*rSecSequence)[ (*aHashIter).second ].Value; } } } |