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

List:       haiku-development
Subject:    [haiku-development] [PATCH] BPolygon copying behavior
From:       "Stephen Deken" <stephen.deken () gmail ! com>
Date:       2008-10-27 17:47:17
Message-ID: 878bbd3b0810271047q59c7cb32s2061f9310559515c () mail ! gmail ! com
[Download RAW message or body]


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@gmail.com

["PolygonCopy.patch" (application/octet-stream)]

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

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