On sábado, 21 de janeiro de 2017 11:30:40 PST Stephen Kelly wrote:
> Hi,
> 
> Does anyone know why QFlags has a constructor taking a Zero pointer? My
> guess is that it's a hack to make initializing like
> 
>  Qt::WindowFlags = 0
> 
> work? The problem encountered is that porting tools convert that to
> 
>  Qt::WindowFlags = nullptr
> 
> which is undesirable.
> 
>  https://mail.kde.org/pipermail/kde-frameworks-devel/2017-January/042091.htm
> l
> 
> Is there a better solution to that with modern c++?

Use {}.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to