Comment 7 for bug 117731

Revision history for this message
Frode M. Døving (frode) wrote :

from gutsy qt, tools/qgvector.cpp:

QGVector::QGVector( uint size )·· · // create vectors with nullptrs
{
    len = size;
    numItems = 0;
    if ( len == 0 ) {· · · · // zero length
· vec = 0;
· return;
    }
    vec = NEW(Item,len);
    Q_CHECK_PTR( vec ); // this is line 176
    memset( (void*)vec, 0, len*sizeof(Item) );· // fill with nulls
}