diff --git a/test/source/beans/xpropertyset.cxx b/test/source/beans/xpropertyset.cxx index 3ebfca4b49b5..3161b8741894 100644 --- a/test/source/beans/xpropertyset.cxx +++ b/test/source/beans/xpropertyset.cxx @@ -77,62 +77,62 @@ bool XPropertySet::isPropertyValueChangeable(const OUString& rName) { uno::Any any = xPropSet->getPropertyValue(rName); uno::Type type = any.getValueType(); - if (type == getCppuType()) + if (type == cppu::UnoType::get()) { // boolean type bool bOld = any.get(); xPropSet->setPropertyValue(rName, makeAny(!bOld)); } - else if (type == getCppuType()) + else if (type == cppu::UnoType::get()) { // 8-bit integer sal_Int8 nOld = any.get(); sal_Int8 nNew = nOld + 1; xPropSet->setPropertyValue(rName, makeAny(nNew)); } - else if (type == getCppuType()) + else if (type == cppu::UnoType::get()) { // 16-bit integer sal_Int16 nOld = any.get(); sal_Int16 nNew = nOld + 2; xPropSet->setPropertyValue(rName, makeAny(nNew)); } - else if (type == getCppuType()) + else if (type == cppu::UnoType::get()) { // 32-bit integer sal_Int32 nOld = any.get(); sal_Int32 nNew = nOld + 3; xPropSet->setPropertyValue(rName, makeAny(nNew)); } - else if (type == getCppuType()) + else if (type == cppu::UnoType::get()) { // 64-bit integer sal_Int64 nOld = any.get(); sal_Int64 nNew = nOld + 4; xPropSet->setPropertyValue(rName, makeAny(nNew)); } - else if (type == getCppuType()) + else if (type == cppu::UnoType::get()) { // single precision float fOld = any.get(); float fNew = fOld + 1.2; xPropSet->setPropertyValue(rName, makeAny(fNew)); } - else if (type == getCppuType()) + else if (type == cppu::UnoType::get()) { // double precision double fOld = any.get(); double fNew = fOld + 1.3; xPropSet->setPropertyValue(rName, makeAny(fNew)); } - else if (type == getCppuType()) + else if (type == cppu::UnoType::get()) { // string type OUString aOld = any.get(); OUString aNew = aOld + "foo"; xPropSet->setPropertyValue(rName, makeAny(aNew)); } - else if (type == getCppuType()) + else if (type == cppu::UnoType::get()) { // date time type util::DateTime aDT = any.get();