summaryrefslogtreecommitdiff
path: root/dbaccess/source
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2018-09-09 12:30:06 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2018-09-09 21:08:01 +0200
commit31fca96e53e59e810da136e8448b8e6986c44afa (patch)
tree0392381998cc1bd6fb7abdf09315ac5040ad84b5 /dbaccess/source
parent1b49ad9550ce69e29ad0fcdf32d2f345b58ff76d (diff)
Avoid getTokenCount()
Change-Id: I3d4ae7495f43cae35e8a149c6523bc0337621724
Diffstat (limited to 'dbaccess/source')
-rw-r--r--dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
index 65fd640ba363..178f90991727 100644
--- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
+++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
@@ -945,7 +945,7 @@ bool OSelectionBrowseBox::SaveModified()
sal_Int32 nPos = m_pFieldCell->GetEntryPos(aFieldName);
OUString aAliasName = pEntry->GetAlias();
- if ( nPos != COMBOBOX_ENTRY_NOTFOUND && aAliasName.isEmpty() && comphelper::string::getTokenCount(aFieldName, '.') > 1 )
+ if ( nPos != COMBOBOX_ENTRY_NOTFOUND && aAliasName.isEmpty() && aFieldName.indexOf('.') >= 0 )
{ // special case, we have a table field so we must cut the table name
OUString sTableAlias = aFieldName.getToken(0,'.');
pEntry->SetAlias(sTableAlias);