[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: Array of pointers to QUANTUM pointers
From:       Bart Coppens <kde () bartcoppens ! be>
Date:       2005-06-28 13:07:00
Message-ID: 200506281507.00476.kde () bartcoppens ! be
[Download RAW message or body]

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)
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic