diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-05-20 15:25:00 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-05-20 15:25:37 +0200 |
commit | c53812a1b7c45b1b5a4a341b178c40602c7dcbf7 (patch) | |
tree | c9d6a029aa5f4e6081be0aadb2ee2a11e68aa285 /sdext/source/pdfimport | |
parent | b8c046acfc235cbfb09d598b502a66922045cabc (diff) |
Some cppcheck cleaning
Change-Id: Ic30cdeffabec1eb1a6c153ac450a3d28064ef534
Diffstat (limited to 'sdext/source/pdfimport')
-rw-r--r-- | sdext/source/pdfimport/pdfparse/pdfentries.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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++; |