[Development] It could be a little bug
Thiago Macieira
thiago.macieira at intel.com
Mon Nov 4 23:16:31 CET 2013
On segunda-feira, 4 de novembro de 2013 22:53:52, Marc Mutz wrote:
> On Monday, November 04, 2013 17:15:26 Thiago Macieira wrote:
> > On segunda-feira, 4 de novembro de 2013 12:31:22, Marc Mutz wrote:
> > > + Q_DECL_CONSTEXPR inline QFlags operator|(QFlags f) const { return
> > > QFlags(i | f.i, true); } + Q_DECL_CONSTEXPR inline QFlags
> > > operator|(Enum f) const { return QFlags(i | Int(f), true); } +
> > > Q_DECL_CONSTEXPR inline QFlags operator^(QFlags f) const { return
> > > QFlags(i ^ f.i, true); } + Q_DECL_CONSTEXPR inline QFlags
> > > operator^(Enum f) const { return QFlags(i ^ Int(f), true); } +
> > > Q_DECL_CONSTEXPR inline QFlags
> > > operator&(int mask) const { return QFlags(i & mask, true); }
> > > + Q_DECL_CONSTEXPR inline QFlags operator&(uint mask) const { return
> > > QFlags(i & mask, true); } + Q_DECL_CONSTEXPR inline QFlags
> > > operator&(Enum f) const { return QFlags(i & Int(f), true); }
> > > + Q_DECL_CONSTEXPR inline QFlags operator~() const { return
> > > QFlags(~i,
> > > true); }
> >
> > This part looks very right.
>
> Ok. Submit to stable or dev?
Stable.
By the way, you may be able to use QFlag (singular) to pass the parameter.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131104/ec10b78e/attachment.sig>
More information about the Development
mailing list