Sfoglia il codice sorgente

Remove unnecessary cast in XMLNode::Value()

Sarat Addepalli 11 anni fa
parent
commit
96b4346660
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      tinyxml2.cpp

+ 1 - 1
tinyxml2.cpp

@@ -646,7 +646,7 @@ XMLNode::~XMLNode()
 const char* XMLNode::Value() const 
 const char* XMLNode::Value() const 
 {
 {
     if ( this->ToDocument() )
     if ( this->ToDocument() )
-        return ( const char* )0;
+        return 0;
     return _value.GetStr();
     return _value.GetStr();
 }
 }