summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/shapepropertynotifier.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-09 10:11:00 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-09 12:41:09 +0000
commit5a308b1239a09417507b0d05090ff2d3418d5133 (patch)
tree990fa9015a4107e4916691eb4dee80fa5713e96b /svx/source/unodraw/shapepropertynotifier.cxx
parentc1a227600d0b16df283162d24f1a31f5c9cee474 (diff)
V801: Decreased performance
Change-Id: Iba139ede7bd72e23c0b7a28a8a4ff38ea816725a
Diffstat (limited to 'svx/source/unodraw/shapepropertynotifier.cxx')
-rw-r--r--svx/source/unodraw/shapepropertynotifier.cxx9
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!" );