summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/odbcbase
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-04 13:51:21 +0200
committerNoel Grandin <noel@peralex.com>2013-11-11 11:21:25 +0200
commit1bdb2b6f06c556b9af91dba4f29f3ac73190b09e (patch)
tree1d941e17952cd891f5309fd862215dd09a84b001 /connectivity/source/drivers/odbcbase
parent2f2416ff060c780ad87b4d3979112f52da2ae902 (diff)
remove unnecessary use of OUString constructor in CONNECTIVITY module
Change-Id: Ie32d03920d996db2793ead9940fc90668cde03dd
Diffstat (limited to 'connectivity/source/drivers/odbcbase')
-rw-r--r--connectivity/source/drivers/odbcbase/ODatabaseMetaData.cxx5
-rw-r--r--connectivity/source/drivers/odbcbase/ODriver.cxx6
-rw-r--r--connectivity/source/drivers/odbcbase/OResultSet.cxx4
3 files changed, 7 insertions, 8 deletions
diff --git a/connectivity/source/drivers/odbcbase/ODatabaseMetaData.cxx b/connectivity/source/drivers/odbcbase/ODatabaseMetaData.cxx
index df7cf2aee687..63f20e2ee020 100644
--- a/connectivity/source/drivers/odbcbase/ODatabaseMetaData.cxx
+++ b/connectivity/source/drivers/odbcbase/ODatabaseMetaData.cxx
@@ -51,7 +51,7 @@ ODatabaseMetaData::ODatabaseMetaData(const SQLHANDLE _pHandle,OConnection* _pCon
{
m_bUseCatalog = !(usesLocalFiles() || usesLocalFilePerTable());
OUString sVersion = getDriverVersion();
- m_bOdbc3 = sVersion != OUString("02.50") && sVersion != OUString("02.00");
+ m_bOdbc3 = sVersion != "02.50" && sVersion != "02.00";
}
catch(SQLException& )
{ // doesn't matter here
@@ -1188,8 +1188,7 @@ OUString SAL_CALL ODatabaseMetaData::getURL( ) throw(SQLException, RuntimeExcep
OUString aValue = m_pConnection->getURL();
if ( aValue.isEmpty() )
{
- aValue = OUString("sdbc:odbc:");
- aValue += getURLImpl();
+ aValue = "sdbc:odbc:" + getURLImpl();
}
return aValue;
}
diff --git a/connectivity/source/drivers/odbcbase/ODriver.cxx b/connectivity/source/drivers/odbcbase/ODriver.cxx
index e5871f012918..091efa9a696c 100644
--- a/connectivity/source/drivers/odbcbase/ODriver.cxx
+++ b/connectivity/source/drivers/odbcbase/ODriver.cxx
@@ -68,7 +68,7 @@ OUString ODBCDriver::getImplementationName_Static( ) throw(RuntimeException)
Sequence< OUString > ODBCDriver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 1 );
- aSNS[0] = OUString("com.sun.star.sdbc.Driver");
+ aSNS[0] = "com.sun.star.sdbc.Driver";
return aSNS;
}
@@ -122,8 +122,8 @@ Sequence< DriverPropertyInfo > SAL_CALL ODBCDriver::getPropertyInfo( const OUStr
::std::vector< DriverPropertyInfo > aDriverInfo;
Sequence< OUString > aBooleanValues(2);
- aBooleanValues[0] = OUString( "false" );
- aBooleanValues[1] = OUString( "true" );
+ aBooleanValues[0] = "false";
+ aBooleanValues[1] = "true";
aDriverInfo.push_back(DriverPropertyInfo(
OUString("CharSet")
diff --git a/connectivity/source/drivers/odbcbase/OResultSet.cxx b/connectivity/source/drivers/odbcbase/OResultSet.cxx
index bf6e9e95e146..1812e8722765 100644
--- a/connectivity/source/drivers/odbcbase/OResultSet.cxx
+++ b/connectivity/source/drivers/odbcbase/OResultSet.cxx
@@ -75,8 +75,8 @@ OUString SAL_CALL OResultSet::getImplementationName( ) throw ( RuntimeException
Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames( ) throw( RuntimeException)
{
Sequence< OUString > aSupported(2);
- aSupported[0] = OUString("com.sun.star.sdbc.ResultSet");
- aSupported[1] = OUString("com.sun.star.sdbcx.ResultSet");
+ aSupported[0] = "com.sun.star.sdbc.ResultSet";
+ aSupported[1] = "com.sun.star.sdbcx.ResultSet";
return aSupported;
}