[vlc-devel] [PATCH 3/7] qt: EPGChannels: use std::sort instead of qSort

Alexandre Janniaux ajanni at videolabs.io
Thu Jul 25 01:14:51 CEST 2019


---
 modules/gui/qt/components/epg/EPGChannels.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/components/epg/EPGChannels.cpp b/modules/gui/qt/components/epg/EPGChannels.cpp
index bb1272916a..97319486fc 100644
--- a/modules/gui/qt/components/epg/EPGChannels.cpp
+++ b/modules/gui/qt/components/epg/EPGChannels.cpp
@@ -50,7 +50,7 @@ void EPGChannels::addProgram( const EPGProgram *program )
     if ( !programsList.contains( program ) )
     {
         programsList << program;
-        qSort(programsList.begin(), programsList.end(), EPGProgram::lessThan);
+        std::sort(programsList.begin(), programsList.end(), EPGProgram::lessThan);
         update();
     }
 }
-- 
2.22.0



More information about the vlc-devel mailing list