[vlc-commits] qt: EPGChannels: use std::sort instead of qSort

Alexandre Janniaux git at videolan.org
Sun Jul 28 08:35:59 CEST 2019


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Jul 25 01:14:51 2019 +0200| [c49140dcff3a2ba2729cec8756c7f78b198d50c9] | committer: Jean-Baptiste Kempf

qt: EPGChannels: use std::sort instead of qSort

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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();
     }
 }



More information about the vlc-commits mailing list