[haiku-development] [PATCH] BPolygon copying behavior

  • From: "Stephen Deken" <stephen.deken@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 27 Oct 2008 12:47:17 -0500

Hello all,

This was intended to be a small patch for BPolygon that changes the
behavior of the assignment operator such that it refuses to
(re)allocate memory unless the (re)allocation is necessary.  While I
was at it, though, I refactored some of the code and wound up touching
nearly everything.  (Oops.)

Basically, I've just added a field to BPolygon called
fAllocatedPoints, and consolidated the copying and allocation routines
into one area.

A side note: is it more desirable to fire off patches to this list, or
to submit bugs on the Trac site?

Thanks,

-- 
Stephen Deken
stephen.deken@xxxxxxxxx

Other related posts:

  • » [haiku-development] [PATCH] BPolygon copying behavior