summaryrefslogtreecommitdiff
path: root/mysqlc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-23 22:11:27 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-23 22:11:52 +0200
commitac76cc7e605b1bc9c0ff8e24d0b9995a8247074e (patch)
tree797df8cc9387fa70a0c09e574f49714ce4dc6710 /mysqlc
parent3191d7d1302dbde2445b9f300b3eb853120ede65 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
Diffstat (limited to 'mysqlc')
-rw-r--r--mysqlc/source/mysqlc_resultset.cxx6
-rw-r--r--mysqlc/source/mysqlc_statement.cxx6
2 files changed, 6 insertions, 6 deletions
diff --git a/mysqlc/source/mysqlc_resultset.cxx b/mysqlc/source/mysqlc_resultset.cxx
index 5942ae701e25..3541ec2b83e2 100644
--- a/mysqlc/source/mysqlc_resultset.cxx
+++ b/mysqlc/source/mysqlc_resultset.cxx
@@ -135,9 +135,9 @@ Sequence< Type > SAL_CALL OResultSet::getTypes()
throw(RuntimeException, std::exception)
{
OSL_TRACE("OResultSet::getTypes");
- OTypeCollection aTypes( ::getCppuType((const Reference< XMultiPropertySet > *) NULL),
- ::getCppuType((const Reference< XFastPropertySet > *) NULL),
- ::getCppuType((const Reference< XPropertySet > *) NULL));
+ OTypeCollection aTypes( cppu::UnoType<XMultiPropertySet>::get(),
+ cppu::UnoType<XFastPropertySet>::get(),
+ cppu::UnoType<XPropertySet>::get());
return concatSequences(aTypes.getTypes(), OResultSet_BASE::getTypes());
}
diff --git a/mysqlc/source/mysqlc_statement.cxx b/mysqlc/source/mysqlc_statement.cxx
index 57b051ea4568..2c6cb8e9b755 100644
--- a/mysqlc/source/mysqlc_statement.cxx
+++ b/mysqlc/source/mysqlc_statement.cxx
@@ -121,9 +121,9 @@ Sequence< Type > SAL_CALL OCommonStatement::getTypes()
throw(RuntimeException, std::exception)
{
OSL_TRACE("OCommonStatement::getTypes");
- ::cppu::OTypeCollection aTypes( ::getCppuType( (const Reference< XMultiPropertySet > *)0 ),
- ::getCppuType( (const Reference< XFastPropertySet > *)0 ),
- ::getCppuType( (const Reference< XPropertySet > *)0 ));
+ ::cppu::OTypeCollection aTypes( cppu::UnoType<XMultiPropertySet>::get(),
+ cppu::UnoType<XFastPropertySet>::get(),
+ cppu::UnoType<XPropertySet>::get());
return concatSequences(aTypes.getTypes(), OCommonStatement_IBase::getTypes());
}