From ad14ed0bbf80dd95dca6e0dea6edbe5fb68f9f26 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Sun, 8 Feb 2015 18:34:04 +0100 Subject: 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/14390 Tested-by: Michael Stahl Reviewed-by: Michael Stahl --- sw/source/core/doc/notxtfrm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx index 4c50dcd0835a..3b86993ec09b 100644 --- a/sw/source/core/doc/notxtfrm.cxx +++ b/sw/source/core/doc/notxtfrm.cxx @@ -808,7 +808,7 @@ void paintGraphicUsingPrimitivesHelper(OutputDevice & rOutputDevice, { aContent[0] = new drawinglayer::primitive2d::GraphicPrimitive2D( aTargetTransform, - rGrfObj.GetGraphic(), + rGrfObj, rGraphicAttr); } -- cgit