summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-05-20 15:25:00 +0200
committerJulien Nabet <serval2412@yahoo.fr>2012-05-20 15:25:37 +0200
commitc53812a1b7c45b1b5a4a341b178c40602c7dcbf7 (patch)
treec9d6a029aa5f4e6081be0aadb2ee2a11e68aa285 /svtools
parentb8c046acfc235cbfb09d598b502a66922045cabc (diff)
Some cppcheck cleaning
Change-Id: Ic30cdeffabec1eb1a6c153ac450a3d28064ef534
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/svhtml/parhtml.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index 1c5b350b4406..d1c588cd5e81 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -1966,8 +1966,7 @@ bool HTMLParser::IsHTMLFormat( const sal_Char* pHeader,
// <HTML> somewhere in the first 80 characters of the document
nStart = sCmp.indexOfL(RTL_CONSTASCII_STRINGPARAM(OOO_STRING_SVTOOLS_HTML_html));
- if( nStart != -1 &&
- nStart>0 && '<'==sCmp[nStart-1] &&
+ if( nStart>0 && '<'==sCmp[nStart-1] &&
nStart+4 < sCmp.getLength() && '>'==sCmp[nStart+4] )
return true;