summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-05-04 07:04:48 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-05-04 09:06:13 +0200
commitadf7d6efed63c3b92a473553039645a37253f3ac (patch)
tree377befacc0f2fe6bbff0b74915f6a08940b7af88 /include
parented58593fcbf1e72c8a2fd04e4c30691db22cdf6f (diff)
Just use Any ctor instead of makeAny in oox
Change-Id: Id6c8341b545c819521056926ef1b80d20d148c5f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133795 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/oox/drawingml/shapepropertymap.hxx2
-rw-r--r--include/oox/helper/propertyset.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/oox/drawingml/shapepropertymap.hxx b/include/oox/drawingml/shapepropertymap.hxx
index a9e4ea405273..11670c02edf4 100644
--- a/include/oox/drawingml/shapepropertymap.hxx
+++ b/include/oox/drawingml/shapepropertymap.hxx
@@ -128,7 +128,7 @@ public:
}
bool setProperty(ShapeProperty ePropId, const ::Color& rValue)
{
- return setAnyProperty(ePropId, css::uno::makeAny(rValue));
+ return setAnyProperty(ePropId, css::uno::Any(rValue));
}
using PropertyMap::setAnyProperty;
diff --git a/include/oox/helper/propertyset.hxx b/include/oox/helper/propertyset.hxx
index f729a29fb17b..676ec4cebf82 100644
--- a/include/oox/helper/propertyset.hxx
+++ b/include/oox/helper/propertyset.hxx
@@ -108,7 +108,7 @@ public:
bool setProperty( sal_Int32 nPropId, const Type& rValue )
{ return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool setProperty( sal_Int32 nPropId, ::Color rValue )
- { return setAnyProperty( nPropId, css::uno::makeAny( rValue ) ); }
+ { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
/** Puts the passed properties into the property set. Tries to use the XMultiPropertySet interface.
@param rPropNames The property names. MUST be ordered alphabetically.