Am 19.05.2007 um 14:48 schrieb Andre Poenitz:

On Sat, May 19, 2007 at 10:52:48AM -0000, [EMAIL PROTECTED] wrote:
+       // Must use new as np is not known at compile time.
+       boost::scoped_array<QPoint> points(new QPoint[np]);

There are never more than five of them, are there?
So you could as well use a static array and assert on np.

Right. One malloc less. Let's make it 10, then there is some space which doesn't hurt either.

Stefan

Andre'

Attachment: PGP.sig
Description: Signierter Teil der Nachricht

Reply via email to