diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-07-29 21:50:56 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-07-29 21:51:38 +0200 |
commit | 072fd39d7ab9837a2f9d93ad080077553d33f289 (patch) | |
tree | 57a4e3edd278de665e122c35c19430f977cdfc20 /unotools | |
parent | 167416c3ed3ed52249559ff3548c0fc06d0d0eef (diff) |
Just quiet cppcheck
Change-Id: I82d65a2ebc8023eaddb6dd1aefb872224f90b47a
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/i18n/textsearch.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx index 6582230e1cf2..ae7edce89c34 100644 --- a/unotools/source/i18n/textsearch.cxx +++ b/unotools/source/i18n/textsearch.cxx @@ -284,7 +284,7 @@ void TextSearch::ReplaceBackReferences( OUString& rReplaceStr, const OUString &r sal_Int32 nLength = rResult.endOffset[0] - rResult.startOffset[0]; sBuff.append(rStr.getStr() + nStart, nLength); } - else if( rReplaceStr[i] == '$' && i < rReplaceStr.getLength() - 1) + else if((i < rReplaceStr.getLength() - 1) && rReplaceStr[i] == '$') { sFndChar = rReplaceStr[ i + 1 ]; switch(sFndChar) @@ -327,7 +327,7 @@ void TextSearch::ReplaceBackReferences( OUString& rReplaceStr, const OUString &r break; } } - else if( rReplaceStr[i] == '\\' && i < rReplaceStr.getLength() - 1) + else if((i < rReplaceStr.getLength() - 1) && rReplaceStr[i] == '\\') { sFndChar = rReplaceStr[ i+1 ]; switch(sFndChar) |