summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-05-02 14:25:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-05-03 12:10:52 +0200
commit4d55513852d41ed72e945597b1f8749c14562012 (patch)
treebedae34037b1588a69841a2725d012ac5f474c70 /xmloff/source/draw/XMLGraphicsDefaultStyle.cxx
parentcbc34f69ec6363cd234ad2b1dfe09bfb531238db (diff)
Just use Any ctor instead of makeAny in xmloff
Change-Id: Ibefb18e5b798ccf1f9d7a5ba1524c9fb1e9bee32 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133700 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmloff/source/draw/XMLGraphicsDefaultStyle.cxx')
-rw-r--r--xmloff/source/draw/XMLGraphicsDefaultStyle.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx b/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx
index 7bb493731f68..4f9799c48666 100644
--- a/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx
+++ b/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx
@@ -130,7 +130,7 @@ void XMLGraphicsDefaultStyle::SetDefaults()
{
// OOo 1.x only supported "true" so that is the more appropriate
// default for OOoXML format documents.
- xDefaults->setPropertyValue("IsFollowingTextFlow", uno::makeAny(true));
+ xDefaults->setPropertyValue("IsFollowingTextFlow", uno::Any(true));
}
// NOTE: the only reason why it's legal to check "==" (not "<") against
@@ -160,7 +160,7 @@ void XMLGraphicsDefaultStyle::SetDefaults()
{
Color const nStroke(
bIsAOO4 ? Color(128, 128, 128) : COL_BLACK);
- xDefaults->setPropertyValue("LineColor", makeAny(nStroke));
+ xDefaults->setPropertyValue("LineColor", Any(nStroke));
}
Color const nFillColor( bIsAOO4
? Color(0xCF, 0xE7, 0xF5) : Color(153, 204, 255));
@@ -169,7 +169,7 @@ void XMLGraphicsDefaultStyle::SetDefaults()
if (std::none_of(GetProperties().begin(), GetProperties().end(),
XMLPropertyByIndex(nFillIndex)))
{
- xDefaults->setPropertyValue("FillColor", makeAny(nFillColor));
+ xDefaults->setPropertyValue("FillColor", Any(nFillColor));
}
if (xInfo->hasPropertyByName("FillColor2"))
{
@@ -178,7 +178,7 @@ void XMLGraphicsDefaultStyle::SetDefaults()
if (std::none_of(GetProperties().begin(), GetProperties().end(),
XMLPropertyByIndex(nFill2Index)))
{
- xDefaults->setPropertyValue("FillColor2", makeAny(sal_Int32(nFillColor)));
+ xDefaults->setPropertyValue("FillColor2", Any(sal_Int32(nFillColor)));
}
}
}