Here is the patch. Comments? Wonder if there is something like that in Boost, but didn't find it.
Stefan
semistaticpoints.patch
Description: Binary data
Am 19.05.2007 um 16:10 schrieb Stefan Schimanski:
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.Just got np=21 with some math decoration. Will implement some nearly static logic for that that only increases the array size, but not before tonight. Then we are on the safe side without malloc's speed impact.Stefan
PGP.sig
Description: Signierter Teil der Nachricht