summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-10-20 15:41:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-10-20 15:41:23 +0200
commit959bf16fb7662cd200d7a188a72de0fdb7c43b6d (patch)
tree7851db96d979ee9b609cd5a973bbf83be599c9d2
parentb1b0a62181d1583a235d788b8d91e5cce422a7ed (diff)
No need for an explicit specializtion of convertFastPropertyValue<bool>
Change-Id: I7b5799ed67b8d5da6cb3e6c4e7c76f05a2ec3853
-rw-r--r--include/comphelper/property.hxx23
1 files changed, 0 insertions, 23 deletions
diff --git a/include/comphelper/property.hxx b/include/comphelper/property.hxx
index f22cd4a44492..445f66cb3988 100644
--- a/include/comphelper/property.hxx
+++ b/include/comphelper/property.hxx
@@ -113,29 +113,6 @@ tryPropertyValueEnum(css::uno::Any& /*out*/_rConvertedValue, css::uno::Any& /*ou
return bModified;
}
-/** helper for implementing ::cppu::OPropertySetHelper::convertFastPropertyValue for boolean properties
- @param _rConvertedValue the conversion result (if successful)
- @param _rOldValue the old value of the property, calculated from _rCurrentValue
- @param _rValueToSet the new value which is about to be set
- @param _rCurrentValue the current value of the property
- @return sal_True, if the value could be converted and has changed
- sal_False, if the value could be converted and has not changed
- @exception InvalidArgumentException thrown if the value could not be converted to a boolean type
-*/
-inline bool tryPropertyValue(css::uno::Any& /*out*/_rConvertedValue, css::uno::Any& /*out*/_rOldValue, const css::uno::Any& _rValueToSet, bool _bCurrentValue)
-{
- bool bModified(false);
- bool bNewValue(false);
- ::cppu::convertPropertyValue(bNewValue, _rValueToSet);
- if (bNewValue != _bCurrentValue)
- {
- _rConvertedValue <<= bNewValue;
- _rOldValue <<= _bCurrentValue;
- bModified = true;
- }
- return bModified;
-}
-
/** helper for implementing ::cppu::OPropertySetHelper::convertFastPropertyValue
@param _rConvertedValue the conversion result (if successful)
@param _rOldValue the old value of the property, calculated from _rCurrentValue