diff options
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/container/IndexedPropertyValuesContainer.cxx | 4 | ||||
-rw-r--r-- | comphelper/source/container/embeddedobjectcontainer.cxx | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/comphelper/source/container/IndexedPropertyValuesContainer.cxx b/comphelper/source/container/IndexedPropertyValuesContainer.cxx index 914629a6271f..824756e7ec36 100644 --- a/comphelper/source/container/IndexedPropertyValuesContainer.cxx +++ b/comphelper/source/container/IndexedPropertyValuesContainer.cxx @@ -189,9 +189,7 @@ css::uno::Any SAL_CALL IndexedPropertyValuesContainer::getByIndex( sal_Int32 nIn if (!((nIndex < nSize) && (nIndex >= 0))) throw lang::IndexOutOfBoundsException(); - uno::Any aAny; - aAny <<= maProperties[nIndex]; - return aAny; + return uno::Any( maProperties[nIndex] ); } // XElementAccess diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx index 1204d3c9c8df..169f37516bcb 100644 --- a/comphelper/source/container/embeddedobjectcontainer.cxx +++ b/comphelper/source/container/embeddedobjectcontainer.cxx @@ -1198,9 +1198,7 @@ bool EmbeddedObjectContainer::InsertGraphicStream( const css::uno::Reference < c xPropSet->setPropertyValue("UseCommonStoragePasswordEncryption", uno::makeAny( true ) ); - uno::Any aAny; - aAny <<= rMediaType; - xPropSet->setPropertyValue("MediaType", aAny ); + xPropSet->setPropertyValue("MediaType", uno::Any(rMediaType) ); xPropSet->setPropertyValue("Compressed", uno::makeAny( true ) ); |