unotools/source/i18n/textsearch.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 072fd39d7ab9837a2f9d93ad080077553d33f289 Author: Julien Nabet <serval2...@yahoo.fr> Date: Mon Jul 29 21:50:56 2013 +0200 Just quiet cppcheck Change-Id: I82d65a2ebc8023eaddb6dd1aefb872224f90b47a diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx index 6582230..ae7edce 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) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits