[Development] QFlags Zero handling
Thiago Macieira
thiago.macieira at intel.com
Sat Jan 21 17:06:03 CET 2017
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
More information about the Development
mailing list