From c53812a1b7c45b1b5a4a341b178c40602c7dcbf7 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 20 May 2012 15:25:00 +0200 Subject: Some cppcheck cleaning Change-Id: Ic30cdeffabec1eb1a6c153ac450a3d28064ef534 --- sdext/source/pdfimport/pdfparse/pdfentries.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sdext') diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx index 0d650c940c7d..04d5022547bc 100644 --- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx @@ -180,7 +180,7 @@ OUString PDFName::getFilteredName() const unsigned int nLen = m_aName.getLength(); for( unsigned int i = 0; i < nLen; i++ ) { - if( pStr[i] == '#' && i < nLen - 3 ) + if( (i < nLen - 3) && pStr[i] == '#' ) { sal_Char rResult = 0; i++; -- cgit