[Libreoffice-commits] core.git: include/comphelper
Stephan Bergmann
sbergman at redhat.com
Thu Oct 20 13:41:53 UTC 2016
include/comphelper/property.hxx | 23 -----------------------
1 file changed, 23 deletions(-)
New commits:
commit 959bf16fb7662cd200d7a188a72de0fdb7c43b6d
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Oct 20 15:41:23 2016 +0200
No need for an explicit specializtion of convertFastPropertyValue<bool>
Change-Id: I7b5799ed67b8d5da6cb3e6c4e7c76f05a2ec3853
diff --git a/include/comphelper/property.hxx b/include/comphelper/property.hxx
index f22cd4a..445f66c 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
More information about the Libreoffice-commits
mailing list