diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-08 14:11:35 +0100 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-03-08 13:16:49 +0000 |
commit | 4bf95c4c31dd871065d4042028a4b3ae476dab70 (patch) | |
tree | 2935dfd660fc2ee2b914ca27a72077e51e5862f3 /connectivity/source/parse/sqlbison.y | |
parent | 596334776ad45f7ab87937615fa1d4e7d2d0fd42 (diff) |
make use of startsWith()
Change-Id: Ie70097de550ddd1cddc6714f8f86f9723cb36679
Reviewed-on: https://gerrit.libreoffice.org/2599
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'connectivity/source/parse/sqlbison.y')
-rw-r--r-- | connectivity/source/parse/sqlbison.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y index a0f7d43fe9af..338d73853e65 100644 --- a/connectivity/source/parse/sqlbison.y +++ b/connectivity/source/parse/sqlbison.y @@ -4739,7 +4739,7 @@ OSQLParseNode* OSQLParser::parseTree(::rtl::OUString& rErrorMessage, if (!aStr.getLength()) { aStr = yytname[YYTRANSLATE(nTokenID)]; - if(!aStr.compareTo("SQL_TOKEN_",10)) + if(aStr.startsWith("SQL_TOKEN_")) aStr = aStr.copy(10); } return aStr; |