[vlc-commits] qt: networkmediamodel: use make_unique for unique_ptr
Alexandre Janniaux
git at videolan.org
Wed Jan 22 10:08:45 CET 2020
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Fri Jan 17 15:30:51 2020 +0100| [34f58236e5510ab4d06533bb4289427f6215461d] | committer: Thomas Guillem
qt: networkmediamodel: use make_unique for unique_ptr
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=34f58236e5510ab4d06533bb4289427f6215461d
---
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-commits
mailing list