diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-01-25 20:14:08 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-01-26 00:49:13 +0100 |
commit | 0f6570453722e9fc3a9bb28b32b64cee7d4bbdbb (patch) | |
tree | 9f5d257ffda08191f6a1bb31769e0beb00991de3 | |
parent | a9b1c62b1a4977dae03e04622612b952edd7b629 (diff) |
startsWith is much better than indexOf for this
Change-Id: I8d4fd1054352cdc67aae9b0ea92ddafc0291d211
-rw-r--r-- | sc/source/filter/xml/xmlcelli.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx index 0eeeecb36597..ba67212b11e0 100644 --- a/sc/source/filter/xml/xmlcelli.cxx +++ b/sc/source/filter/xml/xmlcelli.cxx @@ -1165,9 +1165,9 @@ void ScXMLTableRowCellContext::HasSpecialCaseFormulaText() { if( pOUTextContent ) { - if ( pOUTextContent->isEmpty() || (pOUTextContent->indexOf("Err:") > -1) ) + if ( pOUTextContent->isEmpty() || pOUTextContent->startsWith("Err:") ) mbPossibleErrorCell = true; - else if (pOUTextContent->indexOf("#") > -1) + else if (pOUTextContent->startsWith("#")) mbCheckWithCompilerForError = true; } } |