libxml++ r198 - in trunk: . libxml++/parsers



Author: hub
Date: Wed Mar 25 19:23:49 2009
New Revision: 198
URL: http://svn.gnome.org/viewvc/libxml++?rev=198&view=rev

Log:
	* libxml++/parsers/textreader.cc: severity_ was not initialised
	at construction time.


Modified:
   trunk/ChangeLog
   trunk/libxml++/parsers/textreader.cc

Modified: trunk/libxml++/parsers/textreader.cc
==============================================================================
--- trunk/libxml++/parsers/textreader.cc	(original)
+++ trunk/libxml++/parsers/textreader.cc	Wed Mar 25 19:23:49 2009
@@ -23,8 +23,9 @@
   };
 
 TextReader::TextReader(
-    struct _xmlTextReader* cobj)
-    : propertyreader(new PropertyReader(*this)), impl_( cobj )
+  struct _xmlTextReader* cobj)
+  : propertyreader(new PropertyReader(*this)), impl_( cobj ),
+    severity_( 0 )
 {
   setup_exceptions();
 }
@@ -34,7 +35,8 @@
 	size_type size,
 	const Glib::ustring& uri)
 	: propertyreader(new PropertyReader(*this)), 
-	  impl_( xmlReaderForMemory ((const char*)data, size, uri.c_str(), NULL, 0) )
+	  impl_( xmlReaderForMemory ((const char*)data, size, uri.c_str(), NULL, 0) ),
+    severity_( 0 )
 {
   if( ! impl_ )
   {
@@ -48,7 +50,8 @@
 
 TextReader::TextReader(
     const Glib::ustring& URI)
-  : propertyreader(new PropertyReader(*this)), impl_( xmlNewTextReaderFilename(URI.c_str()) )
+  : propertyreader(new PropertyReader(*this)), impl_( xmlNewTextReaderFilename(URI.c_str()) ),
+    severity_( 0 )
 {
   if( ! impl_ )
   {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]