summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-01 08:41:47 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-01 08:41:47 +0200
commit2093c7a27be60f99cb20aa5f5f088dc3606d4008 (patch)
treea2dc573be1a8004ef65c11aff9f7dfbf25756ede
parent574bc065a7a8732a8be23ed8fbde284e0d611a7a (diff)
Replace remaining getCppuType et al with cppu::UnoType
Change-Id: I50d13cdd5fb94a68c2eb7c165c75ab2413a0d254
-rw-r--r--test/source/beans/xpropertyset.cxx18
1 files changed, 9 insertions, 9 deletions
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<sal_Bool>())
+ if (type == cppu::UnoType<bool>::get())
{
// boolean type
bool bOld = any.get<sal_Bool>();
xPropSet->setPropertyValue(rName, makeAny(!bOld));
}
- else if (type == getCppuType<sal_Int8>())
+ else if (type == cppu::UnoType<sal_Int8>::get())
{
// 8-bit integer
sal_Int8 nOld = any.get<sal_Int8>();
sal_Int8 nNew = nOld + 1;
xPropSet->setPropertyValue(rName, makeAny(nNew));
}
- else if (type == getCppuType<sal_Int16>())
+ else if (type == cppu::UnoType<sal_Int16>::get())
{
// 16-bit integer
sal_Int16 nOld = any.get<sal_Int16>();
sal_Int16 nNew = nOld + 2;
xPropSet->setPropertyValue(rName, makeAny(nNew));
}
- else if (type == getCppuType<sal_Int32>())
+ else if (type == cppu::UnoType<sal_Int32>::get())
{
// 32-bit integer
sal_Int32 nOld = any.get<sal_Int32>();
sal_Int32 nNew = nOld + 3;
xPropSet->setPropertyValue(rName, makeAny(nNew));
}
- else if (type == getCppuType<sal_Int64>())
+ else if (type == cppu::UnoType<sal_Int64>::get())
{
// 64-bit integer
sal_Int64 nOld = any.get<sal_Int64>();
sal_Int64 nNew = nOld + 4;
xPropSet->setPropertyValue(rName, makeAny(nNew));
}
- else if (type == getCppuType<float>())
+ else if (type == cppu::UnoType<float>::get())
{
// single precision
float fOld = any.get<float>();
float fNew = fOld + 1.2;
xPropSet->setPropertyValue(rName, makeAny(fNew));
}
- else if (type == getCppuType<double>())
+ else if (type == cppu::UnoType<double>::get())
{
// double precision
double fOld = any.get<double>();
double fNew = fOld + 1.3;
xPropSet->setPropertyValue(rName, makeAny(fNew));
}
- else if (type == getCppuType<OUString>())
+ else if (type == cppu::UnoType<OUString>::get())
{
// string type
OUString aOld = any.get<OUString>();
OUString aNew = aOld + "foo";
xPropSet->setPropertyValue(rName, makeAny(aNew));
}
- else if (type == getCppuType<util::DateTime>())
+ else if (type == cppu::UnoType<util::DateTime>::get())
{
// date time type
util::DateTime aDT = any.get<util::DateTime>();