[vlc-commits] qt: fix compilation on Qt4

KO Myung-Hun git at videolan.org
Wed Dec 21 02:15:24 CET 2016


vlc | branch: master | KO Myung-Hun <komh at chollian.net> | Tue Dec 20 21:34:39 2016 +0900| [6807b05320bd1baf363ea9851c0cc9f841ea3381] | committer: Francois Cartegnie

qt: fix compilation on Qt4

QMap::last() was introduced in Qt 5.2

Signed-off-by: Francois Cartegnie <fcvlcdev at free.fr>

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

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

diff --git a/modules/gui/qt/components/epg/EPGView.cpp b/modules/gui/qt/components/epg/EPGView.cpp
index ea5b3ac..667a730 100644
--- a/modules/gui/qt/components/epg/EPGView.cpp
+++ b/modules/gui/qt/components/epg/EPGView.cpp
@@ -173,7 +173,7 @@ void EPGView::walkItems( bool b_cleanup )
 
         if( !program->eventsbytime.isEmpty() )
         {
-            const EPGItem *last = program->eventsbytime.last();
+            const EPGItem *last = (program->eventsbytime.end() - 1).value();
             if( !maxTime.isValid() ||
                  last->start().addSecs( last->duration() ) > maxTime )
             {



More information about the vlc-commits mailing list