On 06.02.2006 16:49, Piotr Obrzut wrote:
Compare this code:
> LeafBuffers lb = leaves_buffers.GetUnusedData (buffer_created,
> rview->GetCurrentFrameNumber ());
With the prototype of GetUnusedData():
> T& GetUnusedData (bool& created, uint frameNumber)
> { ... }> problems occures when buffer wasn't created - lb.leaf_buffer_holder is > NULL then, why? how can I solve that? GetUnusedData() returns a reference to the data; your code above however makes a copy of that reference, and thus in the "if (buffer_created)" block you only manipulate the copy of the data. -f.r.
signature.asc
Description: OpenPGP digital signature
