summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-28 12:54:54 +0200
committerNoel Grandin <noel@peralex.com>2014-05-29 09:01:40 +0200
commit624a116d1482cdf0f9249e10a631dd6bd89f43eb (patch)
tree198f0392bd95ea3185210584e993340981be21c3 /connectivity
parentebc0a15515c2e29259a7e229cfbdfb5d26fc3006 (diff)
use OUString::startsWith()
Change-Id: I0fc77b50792e48be175ab7cc151509e097676849
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/mysql/YDriver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/mysql/YDriver.cxx b/connectivity/source/drivers/mysql/YDriver.cxx
index 588845ecd201..5e854c6c5fec 100644
--- a/connectivity/source/drivers/mysql/YDriver.cxx
+++ b/connectivity/source/drivers/mysql/YDriver.cxx
@@ -115,12 +115,12 @@ namespace connectivity
bool isOdbcUrl(const OUString& _sUrl)
{
- return _sUrl.copy(0,16) == "sdbc:mysql:odbc:";
+ return _sUrl.startsWith("sdbc:mysql:odbc:");
}
bool isNativeUrl(const OUString& _sUrl)
{
- return (!_sUrl.compareTo(OUString("sdbc:mysql:mysqlc:"), sizeof("sdbc:mysql:mysqlc:")-1));
+ return _sUrl.startsWith("sdbc:mysql:mysqlc:");
}
T_DRIVERTYPE lcl_getDriverType(const OUString& _sUrl)