[vlc-commits] demux/adaptive: ChunksSourceStream: use mem-intializer-list in constructor

Filip Roséen git at videolan.org
Thu May 18 21:09:18 CEST 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Thu May 18 17:07:36 2017 +0200| [987e63af1e3525b875283bfb2ac574005ca080ac] | committer: Jean-Baptiste Kempf

demux/adaptive: ChunksSourceStream: use mem-intializer-list in constructor

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/demux/adaptive/plumbing/SourceStream.cpp | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/modules/demux/adaptive/plumbing/SourceStream.cpp b/modules/demux/adaptive/plumbing/SourceStream.cpp
index 9ab361e360..c12e2e67ea 100644
--- a/modules/demux/adaptive/plumbing/SourceStream.cpp
+++ b/modules/demux/adaptive/plumbing/SourceStream.cpp
@@ -32,12 +32,11 @@
 using namespace adaptive;
 
 ChunksSourceStream::ChunksSourceStream(vlc_object_t *p_obj_, ChunksSource *source_)
-{
-    p_block = NULL;
-    b_eof = false;
-    p_obj = p_obj_;
-    source = source_;
-}
+    : p_block( NULL )
+    , b_eof( false )
+    , p_obj( p_obj_ )
+    , source( source_ )
+{ }
 
 ChunksSourceStream::~ChunksSourceStream()
 {



More information about the vlc-commits mailing list