Imported Upstream version 2.91.2
[platform/upstream/libxml++.git] / libxml++ / parsers / textreader.cc
index 5eb0414..223dd9a 100644 (file)
@@ -38,7 +38,7 @@ TextReader::TextReader(
        size_type size,
        const Glib::ustring& uri)
        : propertyreader(new PropertyReader(*this)), 
-         impl_( xmlReaderForMemory ((const char*)data, size, uri.c_str(), 0, 0) ),
+         impl_( xmlReaderForMemory ((const char*)data, size, uri.c_str(), nullptr, 0) ),
     severity_( 0 )
 {
   if( ! impl_ )
@@ -301,7 +301,7 @@ Node* TextReader::get_current_node()
   }
     
   check_for_exceptions();
-  return 0;
+  return nullptr;
 }
 
 const Node* TextReader::get_current_node() const
@@ -329,7 +329,7 @@ Node* TextReader::expand()
   }
     
   check_for_exceptions();
-  return 0;
+  return nullptr;
 }
 
 bool TextReader::next()
@@ -407,7 +407,7 @@ Glib::ustring TextReader::PropertyReader::String(xmlChar* value, bool free)
 {
   owner_.check_for_exceptions();
   
-  if(value == (xmlChar *)0)
+  if (!value)
     return Glib::ustring();
     
   const Glib::ustring result = (char *)value;
@@ -422,7 +422,7 @@ Glib::ustring TextReader::PropertyReader::String(xmlChar const* value)
 {
   owner_.check_for_exceptions();
 
-  if(value == (xmlChar *)0)
+  if (!value)
     return Glib::ustring();
 
   return (const char*)value;