Commit 27459888 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

dash: DOMparser: Replacing an init method by an init list.

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 55ea9b1e
......@@ -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);
......
......@@ -64,7 +64,6 @@ namespace dash
xml_t *vlc_xml;
xml_reader_t *vlc_reader;
void init ();
Node* processNode ();
void addAttributesToNode (Node *node);
void print (Node *node, int offset);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment