[vlc-devel] [PATCH 1/5] qt: networkmediamodel: use make_unique for unique_ptr
Pierre Lamot
pierre at videolabs.io
Mon Jan 20 09:46:53 CET 2020
Hi,
Ok for the set.
On 2020-01-17 15:30, Alexandre Janniaux wrote:
> ---
> modules/gui/qt/network/networkmediamodel.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/modules/gui/qt/network/networkmediamodel.cpp
> b/modules/gui/qt/network/networkmediamodel.cpp
> index 676552c94d..740b81113b 100644
> --- a/modules/gui/qt/network/networkmediamodel.cpp
> +++ b/modules/gui/qt/network/networkmediamodel.cpp
> @@ -235,7 +235,7 @@ bool NetworkMediaModel::initializeMediaSources()
> return false;
>
> auto tree = m_treeItem.source->tree;
> - std::unique_ptr<NetworkSourceListener> l{ new
> NetworkSourceListener( m_treeItem.source, this ) };
> + auto l = std::make_unique<NetworkSourceListener>(
> m_treeItem.source, this );
> if ( l->listener == nullptr )
> return false;
More information about the vlc-devel
mailing list