diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-10 00:14:44 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-05-10 06:19:42 +0200 |
commit | 5ec7a589bed7991ffe8ad9a2f544a6699d159765 (patch) | |
tree | f9020375a29477fe7e4d22970a4040c36abadbdf /connectivity/source/drivers/postgresql/pq_statement.cxx | |
parent | 83a88b942134314e86ac612d0ef70a8e4919e4af (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part8
Change-Id: Ie16923d17541e84e0d7424fffe37caf410786abf
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_statement.cxx')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_statement.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_statement.cxx b/connectivity/source/drivers/postgresql/pq_statement.cxx index e002067039a2..23727dbf126a 100644 --- a/connectivity/source/drivers/postgresql/pq_statement.cxx +++ b/connectivity/source/drivers/postgresql/pq_statement.cxx @@ -120,31 +120,31 @@ static ::cppu::IPropertyArrayHelper & getStatementPropertyArrayHelper() { Property( OUString("CursorName"), 0, - ::getCppuType( (OUString *)0) , 0 ), + ::cppu::UnoType<OUString>::get() , 0 ), Property( OUString("EscapeProcessing"), 1, ::getBooleanCppuType() , 0 ), Property( OUString("FetchDirection"), 2, - ::getCppuType( (sal_Int32 *)0) , 0 ), + ::cppu::UnoType<sal_Int32>::get() , 0 ), Property( OUString("FetchSize"), 3, - ::getCppuType( (sal_Int32 *)0) , 0 ), + ::cppu::UnoType<sal_Int32>::get() , 0 ), Property( OUString("MaxFieldSize"), 4, - ::getCppuType( (sal_Int32 *)0) , 0 ), + ::cppu::UnoType<sal_Int32>::get() , 0 ), Property( OUString("MaxRows"), 5, - ::getCppuType( (sal_Int32 *)0) , 0 ), + ::cppu::UnoType<sal_Int32>::get() , 0 ), Property( OUString("QueryTimeOut"), 6, - ::getCppuType( (sal_Int32 *)0) , 0 ), + ::cppu::UnoType<sal_Int32>::get() , 0 ), Property( OUString("ResultSetConcurrency"), 7, - ::getCppuType( (sal_Int32 *)0) , 0 ), + ::cppu::UnoType<sal_Int32>::get() , 0 ), Property( OUString("ResultSetType"), 8, - ::getCppuType( (sal_Int32 *)0) , 0 ) + ::cppu::UnoType<sal_Int32>::get() , 0 ) }; OSL_ASSERT( sizeof(aTable)/ sizeof(Property) == STATEMENT_SIZE ); static ::cppu::OPropertyArrayHelper arrayHelper( aTable, STATEMENT_SIZE, sal_True ); |