summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/dialogcontrol.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-31 14:38:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-31 14:34:08 +0000
commit96a47eeedfe4c8adcf2c2903d72fe6e4e12a65e3 (patch)
treed8120e1cb51d1ad7fc4702293b5fa7cc941061c8 /toolkit/source/controls/dialogcontrol.cxx
parent589cd835436de8ada027280f927fa2ae28420317 (diff)
simplify subclasses of comphelper::OPropertySetHelper
they should deal in terms of the fast property IDS, they should not need to override setPropertyValueImpl, so just remove this, and standardise on the subclasses overriding setFastPropertyValueImpl Change-Id: I190955ccc4ae3e07dd481a1044f3c074dd1a40aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149836 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit/source/controls/dialogcontrol.cxx')
-rw-r--r--toolkit/source/controls/dialogcontrol.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/source/controls/dialogcontrol.cxx b/toolkit/source/controls/dialogcontrol.cxx
index b9027cbf17d7..1b3e7d988ffa 100644
--- a/toolkit/source/controls/dialogcontrol.cxx
+++ b/toolkit/source/controls/dialogcontrol.cxx
@@ -279,14 +279,14 @@ void UnoControlDialogModel::setFastPropertyValue_NoBroadcast( std::unique_lock<s
uno::Reference<graphic::XGraphic> xGraphic;
if (rValue >>= sImageURL)
{
- setPropertyValueImpl(rGuard,
- GetPropertyName(BASEPROPERTY_GRAPHIC),
+ setFastPropertyValueImpl(rGuard,
+ BASEPROPERTY_GRAPHIC,
uno::Any(ImageHelper::getGraphicAndGraphicObjectFromURL_nothrow(
mxGrfObj, sImageURL)));
}
else if (rValue >>= xGraphic)
{
- setPropertyValueImpl(rGuard, "Graphic", uno::Any(xGraphic));
+ setFastPropertyValueImpl(rGuard, BASEPROPERTY_GRAPHIC, uno::Any(xGraphic));
}
}
}