[vlc-devel] [PATCH 6/6] demux/adaptive: ChunksSourceStream: use mem-intializer-list in constructor
Filip Roséen
filip at atch.se
Thu May 18 17:07:36 CEST 2017
---
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()
{
--
2.12.2
More information about the vlc-devel
mailing list