[Interest] QString operator==

André Somers andre at familiesomers.nl
Wed Aug 22 14:29:51 CEST 2012


Op 22-8-2012 13:40, Thiago Macieira schreef:
> On quarta-feira, 22 de agosto de 2012 13.35.19, André Somers wrote:
>> Hmmm... Wouldn't it make sense to also check on the the d pointers
>> actually being the same? Or is that in qMemEquals?
> Hint: please check before asking. Takes a couple of seconds...
>
> static bool qMemEquals(const quint16 *a, const quint16 *b, int length)
> {
>      if (a == b || !length)
>          return true;
>
Yes, you are right of course. I could have checked it online, for a lack 
of having the Qt sources at hand.

André



More information about the Interest mailing list