Commit 57ee2560 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Rémi Denis-Courmont

dash: Using initialization list.

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 674fe365
......@@ -30,10 +30,9 @@
using namespace dash::mpd;
using namespace dash::exception;
MPD::MPD (std::map<std::string, std::string> attributes)
MPD::MPD (const AttributesMap& attributes) : attributes( attributes ),
programInfo( NULL )
{
this->attributes = attributes;
this->programInfo = NULL;
}
MPD::~MPD ()
......
......@@ -44,7 +44,7 @@ namespace dash
typedef std::map<std::string, std::string> AttributesMap;
public:
MPD (std::map<std::string, std::string> attributes);
MPD (const AttributesMap& attributes);
virtual ~MPD();
const std::string& getType () const throw(dash::exception::AttributeNotPresentException);
......
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