[Interest] Signed return type of QIODevice::pos() - why?
Thiago Macieira
thiago.macieira at intel.com
Thu Nov 13 18:26:33 CET 2014
On Thursday 13 November 2014 13:45:45 Rainer Wiesenfarth wrote:
> One of my colleagues just asked the rather philosophical question why the
> result of QFile::pos() - and thus QIODevice::pos() - is of type qint64 (and
> thus signed). He had expected an unsigned type, ideally size_t or offset_t.
>
> I was unable to find a reason, but maybe someone on the list can step in?
Because we use signed for everything. You don't see unsigned types in our API.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list