summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-12-09 12:51:35 +0200
committerNoel Grandin <noel@peralex.com>2013-12-09 12:53:18 +0200
commitc5b7a5fd191a8ec65a64980fe3197832dba1ffae (patch)
treea4da3b16cd52626274819345cfbac480b04eef52 /dbaccess
parentaefd8ff742f8952327f1bddc37e62317d69ffb7d (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 'dbaccess')
-rw-r--r--dbaccess/source/core/api/FilteredContainer.cxx4
-rw-r--r--dbaccess/source/ui/dlg/tablespage.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/core/api/FilteredContainer.cxx b/dbaccess/source/core/api/FilteredContainer.cxx
index dfa656c47ea1..7e5de81e4a84 100644
--- a/dbaccess/source/core/api/FilteredContainer.cxx
+++ b/dbaccess/source/core/api/FilteredContainer.cxx
@@ -168,7 +168,7 @@ sal_Int32 createWildCardVector(Sequence< OUString >& _rTableFilter, ::std::vecto
// first, filter for the table names
sal_Int32 nTableFilterCount = _tableFilter.getLength();
- sal_Bool dontFilterTableNames = ( ( nTableFilterCount == 1 ) && _tableFilter[0].startsWith( "%" ) );
+ sal_Bool dontFilterTableNames = ( ( nTableFilterCount == 1 ) && _tableFilter[0] == "%" );
if( dontFilterTableNames )
{
aFilteredTables = _unfilteredTables;
@@ -198,7 +198,7 @@ sal_Int32 createWildCardVector(Sequence< OUString >& _rTableFilter, ::std::vecto
// second, filter for the table types
sal_Int32 nTableTypeFilterCount = _tableTypeFilter.getLength();
- sal_Bool dontFilterTableTypes = ( ( nTableTypeFilterCount == 1 ) && _tableTypeFilter[0].startsWith( "%" ) );
+ sal_Bool dontFilterTableTypes = ( ( nTableTypeFilterCount == 1 ) && _tableTypeFilter[0] == "%" );
dontFilterTableTypes = dontFilterTableTypes || ( nTableTypeFilterCount == 0 );
// (for TableTypeFilter, unlike TableFilter, "empty" means "do not filter at all")
if ( !dontFilterTableTypes )
diff --git a/dbaccess/source/ui/dlg/tablespage.cxx b/dbaccess/source/ui/dlg/tablespage.cxx
index 36f8615ea003..c1fbf55bdab5 100644
--- a/dbaccess/source/ui/dlg/tablespage.cxx
+++ b/dbaccess/source/ui/dlg/tablespage.cxx
@@ -217,7 +217,7 @@ DBG_NAME(OTableSubscriptionPage)
}
else
{
- if ((1 == _rTableFilter.getLength()) && _rTableFilter[0].startsWith("%"))
+ if ((1 == _rTableFilter.getLength()) && _rTableFilter[0] == "%")
{ // all tables visible
CheckAll(sal_True);
}