summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2020-08-28 12:16:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-08-31 08:34:55 +0200
commitc0463f8a9fc4db7b62040010b3fefc9af3b17396 (patch)
treeeeac3c75809d62ea8d019496778a85e34273e811 /sax
parentc78449b0386ed38a2ad81584926f8b31b61e9e05 (diff)
Fix typo in code
It passed "make check" on Linux Change-Id: I86123dbc2052653aaf1d5c3a6fafb554c0b9a7fb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101600 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax')
-rw-r--r--sax/source/expatwrap/xml2utf.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sax/source/expatwrap/xml2utf.cxx b/sax/source/expatwrap/xml2utf.cxx
index 9e531b13cfa6..1f044571d53d 100644
--- a/sax/source/expatwrap/xml2utf.cxx
+++ b/sax/source/expatwrap/xml2utf.cxx
@@ -160,7 +160,7 @@ void XMLFile2UTFConverter::removeEncoding( Sequence<sal_Int8> &seq )
bool XMLFile2UTFConverter::isEncodingRecognizable( const Sequence< sal_Int8 > &seq)
{
const sal_Int8 *pSource = seq.getConstArray();
- bool bCheckIfFirstClosingBracketExsists = false;
+ bool bCheckIfFirstClosingBracketExists = false;
if( seq.getLength() < 8 ) {
// no recognition possible, when less than 8 bytes are available
@@ -169,22 +169,22 @@ bool XMLFile2UTFConverter::isEncodingRecognizable( const Sequence< sal_Int8 > &s
if( ! strncmp( reinterpret_cast<const char *>(pSource), "<?xml", 5 ) ) {
// scan if the <?xml tag finishes within this buffer
- bCheckIfFirstClosingBracketExsists = true;
+ bCheckIfFirstClosingBracketExists = true;
}
else if( ('<' == pSource[0] || '<' == pSource[2] ) &&
('?' == pSource[4] || '?' == pSource[6] ) )
{
// check for utf-16
- bCheckIfFirstClosingBracketExsists = true;
+ bCheckIfFirstClosingBracketExists = true;
}
else if( ( '<' == pSource[1] || '<' == pSource[3] ) &&
( '?' == pSource[5] || '?' == pSource[7] ) )
{
// check for
- bCheckIfFirstClosingBracketExsists = true;
+ bCheckIfFirstClosingBracketExists = true;
}
- if( bCheckIfFirstClosingBracketExsists )
+ if( bCheckIfFirstClosingBracketExists )
{
// whole <?xml tag is valid
return std::find(seq.begin(), seq.end(), '>') != seq.end();