summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/mysql
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/mysql
parent2f2416ff060c780ad87b4d3979112f52da2ae902 (diff)
remove unnecessary use of OUString constructor in CONNECTIVITY module
Change-Id: Ie32d03920d996db2793ead9940fc90668cde03dd
Diffstat (limited to 'connectivity/source/drivers/mysql')
-rw-r--r--connectivity/source/drivers/mysql/YCatalog.cxx2
-rw-r--r--connectivity/source/drivers/mysql/YColumns.cxx4
-rw-r--r--connectivity/source/drivers/mysql/YDriver.cxx19
3 files changed, 10 insertions, 15 deletions
diff --git a/connectivity/source/drivers/mysql/YCatalog.cxx b/connectivity/source/drivers/mysql/YCatalog.cxx
index cab7b9d0045f..e8d1d3323641 100644
--- a/connectivity/source/drivers/mysql/YCatalog.cxx
+++ b/connectivity/source/drivers/mysql/YCatalog.cxx
@@ -74,7 +74,7 @@ void OMySQLCatalog::refreshTables()
void OMySQLCatalog::refreshViews()
{
Sequence< OUString > aTypes(1);
- aTypes[0] = OUString("VIEW");
+ aTypes[0] = "VIEW";
// let's simply assume the server is new enough to support views. Current drivers
// as of this writing might not return the proper information in getTableTypes, so
diff --git a/connectivity/source/drivers/mysql/YColumns.cxx b/connectivity/source/drivers/mysql/YColumns.cxx
index 169bdc57c0de..f936432e76e7 100644
--- a/connectivity/source/drivers/mysql/YColumns.cxx
+++ b/connectivity/source/drivers/mysql/YColumns.cxx
@@ -55,7 +55,7 @@ OMySQLColumn::OMySQLColumn( sal_Bool _bCase)
// -------------------------------------------------------------------------
void OMySQLColumn::construct()
{
- m_sAutoIncrement = OUString("auto_increment");
+ m_sAutoIncrement = "auto_increment";
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_AUTOINCREMENTCREATION),PROPERTY_ID_AUTOINCREMENTCREATION,0,&m_sAutoIncrement, ::getCppuType(&m_sAutoIncrement));
}
// -----------------------------------------------------------------------------
@@ -72,7 +72,7 @@ void OMySQLColumn::construct()
Sequence< OUString > SAL_CALL OMySQLColumn::getSupportedServiceNames( ) throw(RuntimeException)
{
Sequence< OUString > aSupported(1);
- aSupported[0] = OUString("com.sun.star.sdbcx.Column");
+ aSupported[0] = "com.sun.star.sdbcx.Column";
return aSupported;
}
diff --git a/connectivity/source/drivers/mysql/YDriver.cxx b/connectivity/source/drivers/mysql/YDriver.cxx
index cb005e9e7363..d7cd83bfc91f 100644
--- a/connectivity/source/drivers/mysql/YDriver.cxx
+++ b/connectivity/source/drivers/mysql/YDriver.cxx
@@ -137,17 +137,12 @@ namespace connectivity
{
OUString sNewUrl = _sUrl.copy(11);
if ( isOdbcUrl( _sUrl ) )
- sNewUrl = OUString("sdbc:") + sNewUrl;
+ sNewUrl = "sdbc:" + sNewUrl;
else if ( isNativeUrl( _sUrl ) )
- sNewUrl = OUString("sdbc:") + sNewUrl;
+ sNewUrl = "sdbc:" + sNewUrl;
else
{
- sNewUrl = sNewUrl.copy(5);
-
- OUString sTempUrl = OUString("jdbc:mysql://");
-
- sTempUrl += sNewUrl;
- sNewUrl = sTempUrl;
+ sNewUrl = "jdbc:mysql://" + sNewUrl.copy(5);
}
return sNewUrl;
}
@@ -340,8 +335,8 @@ namespace connectivity
return Sequence< DriverPropertyInfo >();
Sequence< OUString > aBoolean(2);
- aBoolean[0] = OUString("0");
- aBoolean[1] = OUString("1");
+ aBoolean[0] = "0";
+ aBoolean[1] = "1";
aDriverInfo.push_back(DriverPropertyInfo(
@@ -478,8 +473,8 @@ namespace connectivity
Sequence< OUString > ODriverDelegator::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 2 );
- aSNS[0] = OUString("com.sun.star.sdbc.Driver");
- aSNS[1] = OUString("com.sun.star.sdbcx.Driver");
+ aSNS[0] = "com.sun.star.sdbc.Driver";
+ aSNS[1] = "com.sun.star.sdbcx.Driver";
return aSNS;
}
//------------------------------------------------------------------