summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/postgresql/pq_xcolumns.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-05-04 11:59:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-05-04 11:59:23 +0200
commit6e70103da07ec67b1c1f106a8fcd064e3df97271 (patch)
tree091834cdeb1358b9b3b0c3416f8672cc7cfb26d0 /connectivity/source/drivers/postgresql/pq_xcolumns.cxx
parent019a0fbdd860994ba727f19eba0879136406d0f9 (diff)
While at it, delete Any functions on sal_Bool*
(at least for LIBO_INTERNAL_ONLY), to help further reduce the occurrences of sal_Bool across the code base Change-Id: I70654a0cb56655984c717b7b894f26c9ab47536e
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_xcolumns.cxx')
-rw-r--r--connectivity/source/drivers/postgresql/pq_xcolumns.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xcolumns.cxx b/connectivity/source/drivers/postgresql/pq_xcolumns.cxx
index a26b582e1a3a..cf97b369d991 100644
--- a/connectivity/source/drivers/postgresql/pq_xcolumns.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xcolumns.cxx
@@ -74,8 +74,7 @@ namespace pq_sdbc_driver
static Any isCurrency( const OUString & typeName )
{
- sal_Bool b = typeName.equalsIgnoreAsciiCase("money");
- return Any( &b, cppu::UnoType<bool>::get() );
+ return Any( typeName.equalsIgnoreAsciiCase("money") );
}
// static sal_Bool isAutoIncrement8( const OUString & typeName )
@@ -86,7 +85,7 @@ static Any isCurrency( const OUString & typeName )
static Any isAutoIncrement( const OUString & defaultValue )
{
- sal_Bool ret = defaultValue.startsWith( "nextval(" );
+ bool ret = defaultValue.startsWith( "nextval(" );
// printf( "%s %d\n",
// OUStringToOString(defaultValue, RTL_TEXTENCODING_ASCII_US).getStr(),
// ret );
@@ -100,7 +99,7 @@ static Any isAutoIncrement( const OUString & defaultValue )
// {
// b = b || typeName.equalsIgnoreAsciiCaseAscii( serials[i] );
// }
- return Any ( &ret, cppu::UnoType<bool>::get() );
+ return Any ( ret );
}
Columns::Columns(