diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-02-15 21:02:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-16 14:55:51 +0100 |
commit | f04ae7a8b7be6205f6cbc645cb15e7a48f1df960 (patch) | |
tree | 6f63fefb45a31c5353801fec68c067d27623359a /svx/source/sdr/properties/circleproperties.cxx | |
parent | 741ae431ed680ae66e9b242626eef0d8f274486a (diff) |
speed up DefaultProperties::SetObjectItem when loading large chart
The cost of creating a SfxItemSet to pass around changed item
information is surprisingly high, so avoid that and just pass
the vector of changed items down (which we are already building
anyway).
Change-Id: Ifa48e3ce07fb6c92ad05a119ae95ce002af76199
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129976
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/sdr/properties/circleproperties.cxx')
-rw-r--r-- | svx/source/sdr/properties/circleproperties.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/sdr/properties/circleproperties.cxx b/svx/source/sdr/properties/circleproperties.cxx index 3b40abb7cc15..0c2a5bdc173a 100644 --- a/svx/source/sdr/properties/circleproperties.cxx +++ b/svx/source/sdr/properties/circleproperties.cxx @@ -66,12 +66,12 @@ namespace sdr::properties return std::unique_ptr<BaseProperties>(new CircleProperties(*this, rObj)); } - void CircleProperties::ItemSetChanged(const SfxItemSet* pSet) + void CircleProperties::ItemSetChanged(o3tl::span< const SfxPoolItem* const > aChangedItems, sal_uInt16 nDeletedWhich) { SdrCircObj& rObj = static_cast<SdrCircObj&>(GetSdrObject()); // call parent - RectangleProperties::ItemSetChanged(pSet); + RectangleProperties::ItemSetChanged(aChangedItems, nDeletedWhich); // local changes rObj.ImpSetAttrToCircInfo(); |