diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-17 18:47:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:48 +0100 |
commit | b7c27fef4ee42c17bde6aa05dea583e31d5b32fe (patch) | |
tree | 3f4436d6238bed9a85324477bd8eba109a683f2c /helpcompiler/source/BasCodeTagger.cxx | |
parent | d69fb68f3074cea073d82f9d8c88756d2b169e42 (diff) |
Some more loplugin:cstylecast: helpcompiler
Change-Id: I9e094356601cf156537f75d0629fd214710d80e8
Diffstat (limited to 'helpcompiler/source/BasCodeTagger.cxx')
-rw-r--r-- | helpcompiler/source/BasCodeTagger.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/helpcompiler/source/BasCodeTagger.cxx b/helpcompiler/source/BasCodeTagger.cxx index 58e6cfdabe4d..3e514e7c72f8 100644 --- a/helpcompiler/source/BasCodeTagger.cxx +++ b/helpcompiler/source/BasCodeTagger.cxx @@ -82,14 +82,14 @@ void BasicCodeTagger::getBasicCodeContainerNodes() m_pXmlTreeWalker = new LibXmlTreeWalker( m_pDocument ); currentNode = m_pXmlTreeWalker->currentNode(); - if ( !( xmlStrcmp( currentNode->name, (const xmlChar*) "bascode" ) ) ) + if ( !( xmlStrcmp( currentNode->name, reinterpret_cast<const xmlChar*>("bascode") ) ) ) { //Found <bascode> m_BasicCodeContainerTags.push_back( currentNode ); //it goes to the end of the list } while ( !m_pXmlTreeWalker->end() ) { m_pXmlTreeWalker->nextNode(); - if ( !( xmlStrcmp( m_pXmlTreeWalker->currentNode()->name, (const xmlChar*) "bascode" ) ) ) + if ( !( xmlStrcmp( m_pXmlTreeWalker->currentNode()->name, reinterpret_cast<const xmlChar*>("bascode") ) ) ) { //Found <bascode> m_BasicCodeContainerTags.push_back( m_pXmlTreeWalker->currentNode() ); //it goes to the end of the list m_pXmlTreeWalker->ignoreCurrNodesChildren(); @@ -151,12 +151,12 @@ void BasicCodeTagger::tagParagraph( xmlNodePtr paragraph ) i != portions.end(); ++i) { OString sToken(OUStringToOString(strLine.copy(i->nBegin, i->nEnd-i->nBegin), RTL_TEXTENCODING_UTF8)); - xmlNodePtr text = xmlNewText((const xmlChar*)sToken.getStr()); + xmlNodePtr text = xmlNewText(reinterpret_cast<const xmlChar*>(sToken.getStr())); if ( i->tokenType != TT_WHITESPACE ) { xmlChar* typeStr = getTypeString( i->tokenType ); - curNode = xmlNewTextChild( paragraph, 0, (xmlChar*)"item", 0 ); - xmlNewProp( curNode, (xmlChar*)"type", typeStr ); + curNode = xmlNewTextChild( paragraph, 0, reinterpret_cast<xmlChar const *>("item"), 0 ); + xmlNewProp( curNode, reinterpret_cast<xmlChar const *>("type"), typeStr ); xmlAddChild( curNode, text ); xmlFree( typeStr ); } |