summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2018-11-07 23:41:21 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2018-11-10 22:04:05 +0100
commit27f5860966f215da4d98c9af02e7f59d07809786 (patch)
tree187aa28dec49974f064e270e3a0b330a83a6bb40 /dbaccess
parent1f2317b130d62614b10115527a4cbcfd0c8c3896 (diff)
Use indexOf instead of getTokenCount for simple check
Change-Id: I0a0068649fd688f311e1ba4865a51406c4ffd672
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/querydesign/QueryDesignView.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index 8be9777c3311..046e851183c0 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -2923,7 +2923,7 @@ OSQLParseNode* OQueryDesignView::getPredicateTreeFromEntry(const OTableFieldDesc
if ( sFunction.isEmpty() )
sFunction = pEntry->GetField();
- if (comphelper::string::getTokenCount(sFunction, '(') > 1)
+ if (sFunction.indexOf('(')>=0) // sFunctions has at least 2 tokens
sFunction = sFunction.getToken(0,'('); // this should be the name of the function
sal_Int32 nType = ::connectivity::OSQLParser::getFunctionReturnType(sFunction,&rParser.getContext());