[vlc-devel] [PATCH 2/2] qt: fix compilation on Qt4

Francois Cartegnie fcvlcdev at free.fr
Tue Dec 20 15:28:02 CET 2016


Le 20/12/2016 à 13:37, KO Myung-Hun a écrit :
>          if( !program->eventsbytime.isEmpty() )
>          {
> +#if QT_VERSION >= 0x050200
>              const EPGItem *last = program->eventsbytime.last();
> +#else
> +            const EPGItem *last = (program->eventsbytime.end() - 1).value();
> +#endif

I think a raw replacement is better.

Francois


More information about the vlc-devel mailing list