[vlc-commits] qt: mlnetworkmediamodel: fix warnings

Alexandre Janniaux git at videolan.org
Thu Dec 5 17:18:02 CET 2019


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Sun Nov 17 19:16:35 2019 +0100| [751c950ba98143bf33d52cd3b577a2f78794ccb3] | committer: Thomas Guillem

qt: mlnetworkmediamodel: fix warnings

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/gui/qt/components/mediacenter/mlnetworkmediamodel.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt/components/mediacenter/mlnetworkmediamodel.cpp b/modules/gui/qt/components/mediacenter/mlnetworkmediamodel.cpp
index e8f8609187..1454b06540 100644
--- a/modules/gui/qt/components/mediacenter/mlnetworkmediamodel.cpp
+++ b/modules/gui/qt/components/mediacenter/mlnetworkmediamodel.cpp
@@ -170,7 +170,7 @@ bool MLNetworkMediaModel::addToPlaylist(int index)
 {
     if (!(m_ctx && m_hasTree))
         return false;
-    if (index < 0 || index >= m_items.size() )
+    if (index < 0 || (size_t)index >= m_items.size() )
         return false;
     auto item =  m_items[index];
     vlc::playlist::Media media{ item.tree.media.get() };
@@ -196,7 +196,7 @@ bool MLNetworkMediaModel::addAndPlay(int index)
 {
     if (!(m_ctx && m_hasTree))
         return false;
-    if (index < 0 || index >= m_items.size() )
+    if (index < 0 || (size_t)index >= m_items.size() )
         return false;
     auto item =  m_items[index];
     vlc::playlist::Media media{ item.tree.media.get() };
@@ -267,7 +267,7 @@ bool MLNetworkMediaModel::initializeMediaSources()
     return true;
 }
 
-void MLNetworkMediaModel::onItemCleared( MediaSourcePtr mediaSource, input_item_node_t* node )
+void MLNetworkMediaModel::onItemCleared( MediaSourcePtr mediaSource, input_item_node_t*)
 {
     input_item_node_t *res;
     input_item_node_t *parent;
@@ -322,7 +322,7 @@ void MLNetworkMediaModel::onItemRemoved( MediaSourcePtr,
     }
 }
 
-void MLNetworkMediaModel::onItemPreparseEnded(MediaSourcePtr mediaSource, input_item_node_t* node, enum input_item_preparse_status status)
+void MLNetworkMediaModel::onItemPreparseEnded(MediaSourcePtr, input_item_node_t*, enum input_item_preparse_status)
 {
     QMetaObject::invokeMethod(this, [this]() {
         m_parsingPending = false;



More information about the vlc-commits mailing list