sax/source/expatwrap/xml2utf.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
New commits: commit c0463f8a9fc4db7b62040010b3fefc9af3b17396 Author: Andrea Gelmini <andrea.gelm...@gelma.net> AuthorDate: Fri Aug 28 12:16:34 2020 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Aug 31 08:34:55 2020 +0200 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.gran...@collabora.co.uk> 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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits