]> git.sesse.net Git - vlc/blobdiff - modules/stream_filter/dash/xml/DOMParser.cpp
dash: DOMparser: Replacing an init method by an init list.
[vlc] / modules / stream_filter / dash / xml / DOMParser.cpp
index 63ce99519bd90e9b7f93a06d0acd9c1890d6fcc8..16161670e9849cec1e6d7913e349dbe58784e792 100644 (file)
@@ -31,11 +31,14 @@ using namespace dash::xml;
 using namespace dash::http;
 using namespace dash::mpd;
 
-DOMParser::DOMParser    (stream_t *stream)
+DOMParser::DOMParser    (stream_t *stream) :
+    root( NULL ),
+    stream( stream ),
+    vlc_xml( NULL ),
+    vlc_reader( NULL )
 {
-    this->stream = stream;
-    this->init();
 }
+
 DOMParser::~DOMParser   ()
 {
     if(this->vlc_reader)
@@ -123,11 +126,7 @@ void    DOMParser::print                    (Node *node, int offset)
         this->print(node->getSubNodes().at(i), offset);
     }
 }
-void    DOMParser::init                     ()
-{
-    this->root          = NULL;
-    this->vlc_reader    = NULL;
-}
+
 void    DOMParser::print                    ()
 {
     this->print(this->root, 0);