diff options
Diffstat (limited to 'toolkit/source/controls/unocontrolmodel.cxx')
-rw-r--r-- | toolkit/source/controls/unocontrolmodel.cxx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx index bfadc7f6bb8a..8cb7b3a526f9 100644 --- a/toolkit/source/controls/unocontrolmodel.cxx +++ b/toolkit/source/controls/unocontrolmodel.cxx @@ -1002,7 +1002,7 @@ void UnoControlModel::read( const css::uno::Reference< css::io::XObjectInputStre { css::uno::Any aValue; aValue <<= *pFD; - setPropertyValueImpl( aGuard, GetPropertyName( BASEPROPERTY_FONTDESCRIPTOR ), aValue ); + setFastPropertyValueImpl( aGuard, BASEPROPERTY_FONTDESCRIPTOR, aValue ); } } @@ -1210,17 +1210,6 @@ void UnoControlModel::getFastPropertyValue( std::unique_lock<std::mutex>& /*rGua } } -// css::beans::XPropertySet -void UnoControlModel::setPropertyValueImpl( std::unique_lock<std::mutex>& rGuard, const OUString& rPropertyName, const css::uno::Any& rValue ) -{ - sal_Int32 nPropId = static_cast<sal_Int32>(GetPropertyId( rPropertyName )); - DBG_ASSERT( nPropId, "Invalid ID in UnoControlModel::setPropertyValue" ); - if( !nPropId ) - throw css::beans::UnknownPropertyException(rPropertyName); - - setFastPropertyValueImpl( rGuard, nPropId, rValue ); -} - // css::beans::XFastPropertySet void UnoControlModel::setFastPropertyValueImpl( std::unique_lock<std::mutex>& rGuard, sal_Int32 nPropId, const css::uno::Any& rValue ) { |