Kaydet (Commit) ad14ed0b authored tarafından Pierre-Eric Pelloux-Prayer's avatar Pierre-Eric Pelloux-Prayer Kaydeden (comit) Michael Stahl

sw: avoid temporary object creation to build GraphicPrimitive2D

As drawinglayer::primitive2d::GraphicPrimitive2D constructor expects a
GraphicObject ref, we can simply pass in rGrfObj instead of building a
(implicit) temp GraphicObjet using the GetGraphic() result.

Change-Id: I8c54f20804390c773fdf9406f534787ce7143e84
Reviewed-on: https://gerrit.libreoffice.org/14390Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 5d3f89c0
...@@ -808,7 +808,7 @@ void paintGraphicUsingPrimitivesHelper(OutputDevice & rOutputDevice, ...@@ -808,7 +808,7 @@ void paintGraphicUsingPrimitivesHelper(OutputDevice & rOutputDevice,
{ {
aContent[0] = new drawinglayer::primitive2d::GraphicPrimitive2D( aContent[0] = new drawinglayer::primitive2d::GraphicPrimitive2D(
aTargetTransform, aTargetTransform,
rGrfObj.GetGraphic(), rGrfObj,
rGraphicAttr); rGraphicAttr);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment