vlc | branch: master | KO Myung-Hun <[email protected]> | 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 <[email protected]> > 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 ) { _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
