summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-02-10 16:02:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-02-10 17:20:19 +0100
commit1db6e8b7760de1abd49d62df230d89480ffd2161 (patch)
treeccb333ec77da8438204da6076705c966b16ff225 /include/svx
parent2d36e7f5186ba5215f2b228b98c24520bd4f2882 (diff)
no need to use shared_ptr in PropertyChangeNotifier
these things are never shared Change-Id: I21c3b7cf2abf6e47a8839ac60e7bf27b7282ed76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129784 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r--include/svx/shapepropertynotifier.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/shapepropertynotifier.hxx b/include/svx/shapepropertynotifier.hxx
index b26525c63f7b..779eb66e9485 100644
--- a/include/svx/shapepropertynotifier.hxx
+++ b/include/svx/shapepropertynotifier.hxx
@@ -113,7 +113,7 @@ namespace svx
/** registers an IPropertyValueProvider
*/
- void registerProvider( const ShapeProperty _eProperty, const std::shared_ptr<IPropertyValueProvider>& _rProvider );
+ void registerProvider( const ShapeProperty _eProperty, std::unique_ptr<IPropertyValueProvider> _rProvider );
/** notifies changes in the given property to all registered listeners
@@ -137,7 +137,7 @@ namespace svx
return size_t( x );
}
};
- typedef std::unordered_map< ShapeProperty, std::shared_ptr<IPropertyValueProvider>, ShapePropertyHash >
+ typedef std::unordered_map< ShapeProperty, std::unique_ptr<IPropertyValueProvider>, ShapePropertyHash >
PropertyProviders;
::cppu::OWeakObject& m_rContext;
PropertyProviders m_aProviders;