Kaydet (Commit) 27f58609 authored tarafından Matteo Casalin's avatar Matteo Casalin

Use indexOf instead of getTokenCount for simple check

Change-Id: I0a0068649fd688f311e1ba4865a51406c4ffd672
üst 1f2317b1
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment