[vlc-devel] [vlc-commits] Qt: Fix building with Qt < 5.7 after 691c674bfff

Jean-Baptiste Kempf jb at videolan.org
Thu Jun 14 16:58:10 CEST 2018


Hello,

I believe this is not a good idea. Bump requirements of Qt to 5.9.

BR,

On Thu, 14 Jun 2018, at 11:10, Martin Storsjö wrote:
> vlc | branch: master | Martin Storsjö <martin at martin.st> | Thu Jun 14 
> 12:09:03 2018 +0300| [1e979be2dde86f1a2468e2ca98ef7fd3dbe4c265] | 
> committer: Martin Storsjö
> 
> Qt: Fix building with Qt < 5.7 after 691c674bfff
> 
> The parent argument to QAction constructors were made optional
> in Qt 5.7, but contribs still build Qt 5.6.
> 
> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1e979be2dde86f1a2468e2ca98ef7fd3dbe4c265
> ---
> 
>  modules/gui/qt/components/custom_menus.cpp | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/modules/gui/qt/components/custom_menus.cpp b/modules/gui/
> qt/components/custom_menus.cpp
> index c791d3da97..a27f959ad3 100644
> --- a/modules/gui/qt/components/custom_menus.cpp
> +++ b/modules/gui/qt/components/custom_menus.cpp
> @@ -37,7 +37,7 @@
>  #include <QProgressBar>
>  
>  RendererAction::RendererAction( vlc_renderer_item_t *p_item_ )
> -    : QAction()
> +    : QAction(nullptr)
>  {
>      p_item = p_item_;
>      vlc_renderer_item_hold( p_item );
> @@ -66,7 +66,7 @@ RendererMenu::RendererMenu( QMenu *parent, 
> intf_thread_t *p_intf_ )
>  
>      group = new QActionGroup( this );
>  
> -    QAction *action = new QAction( qtr("<Local>") );
> +    QAction *action = new QAction( qtr("<Local>"), nullptr );
>      action->setCheckable(true);
>      addAction( action );
>      group->addAction(action);
> 
> _______________________________________________
> vlc-commits mailing list
> vlc-commits at videolan.org
> https://mailman.videolan.org/listinfo/vlc-commits


-- 
Jean-Baptiste Kempf -  President
+33 672 704 734


More information about the vlc-devel mailing list