[Development] QtCore missing check for memory allocation

Rainer Keller rainer.keller at theqtcompany.com
Wed Feb 25 12:39:10 CET 2015


Hi,

I noticed that in qglobal.h Q_CHECK_PTR may be a noop in case
QT_NO_DEBUG is set. Q_CHECK_PTR is used to check if memory allocations
succeeded (e.g. QVector::reallocateData).

Is QT_NO_DEBUG really disabling the check for valid memory allocation?

Rainer



More information about the Development mailing list