diff options
author | Noel Grandin <noel@peralex.com> | 2013-12-09 12:51:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-12-09 12:53:18 +0200 |
commit | c5b7a5fd191a8ec65a64980fe3197832dba1ffae (patch) | |
tree | a4da3b16cd52626274819345cfbac480b04eef52 /connectivity | |
parent | aefd8ff742f8952327f1bddc37e62317d69ffb7d (diff) |
fix equalsAscii conversion. Noticed in fdo#72391
In commit 363cc397172f2b0a94d9c4dc44fc8d95072795a3
"convert equalsAsciiL calls to startWith calls where possible"
I incorrectly converted equalsAsciiL calls to startsWith calls.
This commit fixes those places to use the == OUString operator.
Change-Id: If76993baf73e3d8fb3bbcf6e8314e59fdc1207b6
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/jdbc/DatabaseMetaData.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx b/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx index c257a3925775..f563c51b0ad4 100644 --- a/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx +++ b/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx @@ -135,7 +135,7 @@ Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getTables( bool bIncludeAllTypes = false; for ( sal_Int32 i=0; i<typeFilterCount; ++i, ++typeFilter ) { - if ( typeFilter->startsWith( "%" ) ) + if ( *typeFilter == "%" ) { bIncludeAllTypes = true; break; @@ -163,7 +163,7 @@ Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getTables( aCatalogFilter = m_pConnection->getCatalogRestriction(); // similar for schema Any aSchemaFilter; - if ( schemaPattern.startsWith( "%" ) ) + if ( schemaPattern == "%" ) aSchemaFilter = m_pConnection->getSchemaRestriction(); else aSchemaFilter <<= schemaPattern; |