[vlc-devel] [PATCH 1/5] qt: networkmediamodel: use make_unique for unique_ptr
Alexandre Janniaux
ajanni at videolabs.io
Fri Jan 17 15:30:51 CET 2020
---
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;
--
2.25.0
More information about the vlc-devel
mailing list