]> git.sesse.net Git - vlc/commitdiff
dash: Using initialization list.
authorHugo Beauzée-Luyssen <beauze.h@gmail.com>
Thu, 24 Nov 2011 11:11:21 +0000 (12:11 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 24 Nov 2011 17:03:39 +0000 (19:03 +0200)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/stream_filter/dash/mpd/MPD.cpp
modules/stream_filter/dash/mpd/MPD.h

index 06843daaa7a1dc766b989f9ed68f7472f272e5ea..46addc5d8d8c6bceddf168fc969c8ad6377fd2f0 100644 (file)
 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   ()
index f73d1dd42d917435a62126b4908c856ed12de4fa..2a6914209899eb0acbad5a4cddf441b0bf9e459d 100644 (file)
@@ -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);