summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/postgresql/pq_xkeys.cxx
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2011-08-05 12:08:40 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2011-11-17 21:15:19 +0100
commitc4fc6b22b3af76eb1ae1df8f2e739df46cc3e1a0 (patch)
treea827d8e5e52ad1649228a4a1efeec6321eca5b21 /connectivity/source/drivers/postgresql/pq_xkeys.cxx
parentad69fc551b03e7f38e2c26b5d3ae2d5b2efb171a (diff)
Janitorial clean-up
- fix a bunch of compiler warnings - move to recommended way of comparing C strings and OUString - Copyright statement on files I modified
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_xkeys.cxx')
-rw-r--r--connectivity/source/drivers/postgresql/pq_xkeys.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xkeys.cxx b/connectivity/source/drivers/postgresql/pq_xkeys.cxx
index 2b7b5405a7e4..d84a76cbb5dc 100644
--- a/connectivity/source/drivers/postgresql/pq_xkeys.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xkeys.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* $RCSfile: pq_xkeys.cxx,v $
@@ -51,6 +52,7 @@
* The Initial Developer of the Original Code is: Joerg Budischewski
*
* Copyright: 2000 by Sun Microsystems, Inc.
+ * 2011 Lionel Elie Mamane <lionel@mamane.lu>
*
* All Rights Reserved.
*
@@ -124,9 +126,9 @@ Keys::~Keys()
static sal_Int32 string2keytype( const rtl::OUString &type )
{
sal_Int32 ret = com::sun::star::sdbcx::KeyType::UNIQUE;
- if( type.compareToAscii( RTL_CONSTASCII_STRINGPARAM( "p" ) ) == 0 )
+ if( type.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("p")) )
ret = com::sun::star::sdbcx::KeyType::PRIMARY;
- else if( type.compareToAscii( RTL_CONSTASCII_STRINGPARAM( "f" ) ) == 0 )
+ else if( type.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("f")) )
ret = com::sun::star::sdbcx::KeyType::FOREIGN;
return ret;
}