Array of pointers to QUANTUM pointers

Bart Coppens kde at bartcoppens.be
Tue Jun 28 15:07:00 CEST 2005


On Tuesday 28 June 2005 14:57, Michael Thaler wrote:
>  QUANTUM * tmp = new QUANTUM[ width * m_pixelSize * sizeof( QUANTUM ) ];
Also, note that contrary to malloc, with C++'s new you don't need to multiply 
with a sizeof(type). (Not that it matters here, afaik sizeof(QUANTUM) is 1)


More information about the kimageshop mailing list