diff options
Diffstat (limited to 'svx/source/unodraw/shapepropertynotifier.cxx')
-rw-r--r-- | svx/source/unodraw/shapepropertynotifier.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/svx/source/unodraw/shapepropertynotifier.cxx b/svx/source/unodraw/shapepropertynotifier.cxx index 9c286f23c856..5b7d9a15d2b5 100644 --- a/svx/source/unodraw/shapepropertynotifier.cxx +++ b/svx/source/unodraw/shapepropertynotifier.cxx @@ -103,24 +103,21 @@ namespace svx { } - PropertyChangeNotifier::~PropertyChangeNotifier() { } - - void PropertyChangeNotifier::registerProvider( const ShapeProperty _eProperty, const PPropertyValueProvider _pProvider ) + void PropertyChangeNotifier::registerProvider(const ShapeProperty _eProperty, const PPropertyValueProvider& _rProvider) { ENSURE_OR_THROW( _eProperty != eInvalidShapeProperty, "Illegal ShapeProperty value!" ); - ENSURE_OR_THROW( !!_pProvider, "NULL factory not allowed." ); + ENSURE_OR_THROW( !!_rProvider, "NULL factory not allowed." ); OSL_ENSURE( m_xData->m_aProviders.find( _eProperty ) == m_xData->m_aProviders.end(), "PropertyChangeNotifier::registerProvider: factory for this ID already present!" ); - m_xData->m_aProviders[ _eProperty ] = _pProvider; + m_xData->m_aProviders[ _eProperty ] = _rProvider; } - void PropertyChangeNotifier::notifyPropertyChange( const ShapeProperty _eProperty ) const { ENSURE_OR_THROW( _eProperty != eInvalidShapeProperty, "Illegal ShapeProperty value!" ); |