[vlc-commits] dash: Using initialization list.

Hugo Beauzée-Luyssen git at videolan.org
Thu Nov 24 18:04:13 CET 2011


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Nov 24 12:11:21 2011 +0100| [57ee2560c2640a22d936016cf00adec670a2053e] | committer: Rémi Denis-Courmont

dash: Using initialization list.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=57ee2560c2640a22d936016cf00adec670a2053e
---

 modules/stream_filter/dash/mpd/MPD.cpp |    5 ++---
 modules/stream_filter/dash/mpd/MPD.h   |    2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/stream_filter/dash/mpd/MPD.cpp b/modules/stream_filter/dash/mpd/MPD.cpp
index 06843da..46addc5 100644
--- a/modules/stream_filter/dash/mpd/MPD.cpp
+++ b/modules/stream_filter/dash/mpd/MPD.cpp
@@ -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   ()
diff --git a/modules/stream_filter/dash/mpd/MPD.h b/modules/stream_filter/dash/mpd/MPD.h
index f73d1dd..2a69142 100644
--- a/modules/stream_filter/dash/mpd/MPD.h
+++ b/modules/stream_filter/dash/mpd/MPD.h
@@ -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);



More information about the vlc-commits mailing list