@@ -668,34 +668,37 @@ void StructuredDocumentXMLParser::setCurrentByteOffset ( const unsigned int offs
668
668
}
669
669
670
670
// **********************************************************************
671
- bool StructuredDocumentXMLParser::characters ( const QString& ch, unsigned int parserOffset )
671
+ bool StructuredDocumentXMLParser::characters ( const QString& ch,
672
+ unsigned int parserOffset )
672
673
{
673
674
QString value = ch;
674
675
#ifdef DEBUG_LP
675
676
DRLOGINIT;
676
- LDEBUG << " StructuredDocumentXMLParser::characters" << value.left (50 ) << " (...), length=" << value.size () << parserOffset;
677
+ LDEBUG << " StructuredDocumentXMLParser::characters" << value.left (50 )
678
+ << " (...), length=" << value.size () << parserOffset;
677
679
#endif
678
680
679
- AbstractStructuredDocumentElement* currentElement = m_currentDocument->back ();
681
+ auto currentElement = m_currentDocument->back ();
680
682
currentElement->setOffset (parserOffset);
681
683
if ( !value.isEmpty () )
682
684
{
683
685
Lima::LimaChar firstChar=value[0 ];
684
686
if ( isSpecialCharacter ( firstChar ) )
685
687
{
686
688
#ifdef DEBUG_LP
687
- LDEBUG << " StructuredDocumentXMLParser::characters: first char " << firstChar
688
- << " is special character: add " << getSpecialCharSize ( firstChar )-1 << " spaces" ;
689
+ LDEBUG << " StructuredDocumentXMLParser::characters: first char "
690
+ << firstChar << " is special character: add "
691
+ << getSpecialCharSize ( firstChar )-1 << " spaces" ;
689
692
#endif
690
693
Lima::LimaString spaces ( getSpecialCharSize ( firstChar )-1 ,' ' );
691
694
value.insert ( 1 ,spaces );
692
695
}
693
696
else
694
697
{
695
698
#ifdef DEBUG_LP
696
- LDEBUG << " StructuredDocumentXMLParser::characters: first char " << firstChar
697
- << " (" << firstChar
698
- << " ) is not a special character" ;
699
+ LDEBUG << " StructuredDocumentXMLParser::characters: first char "
700
+ << firstChar << " (" << firstChar
701
+ << " ) is not a special character" ;
699
702
#endif
700
703
}
701
704
currentElement->addToCurrentOffset ( value );
0 commit comments