https://issues.apache.org/ooo/show_bug.cgi?id=124073

--- Comment #20 from Armin Le Grand <[email protected]> ---
okay, so:

   aRetval[0] = new MaskPrimitive2D(
       basegfx::B2DPolyPolygon(aMaskPolygon), aRetval);

on mac:
- alloc: mem for MaskPrimitive2D
- assign: aRetval[0] gets set (didi I get thar right?)
- construct: constructor of MaskPrimitive2D, using aRetval

else:
- alloc, construct, assign...

This leaves questions:
- aren't there a lot of methods in c++ which return a reference to the object
(*this), so retval usage before constructor should not be standard, should it
?!?

- Does this (at least) clarify that the Sequence< B2DPrimitive > (the aRetval)
internally gets copied, not only refcounted, also on mac ?

Please clarify.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

Reply via email to