canvas/source/opengl/ogl_canvashelper.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 53107fa4e987cc72098d764651b20a5e4df6039b Author: Caolán McNamara <[email protected]> AuthorDate: Fri Nov 21 08:39:08 2025 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Nov 21 11:57:07 2025 +0100 cid#1675019 Variable copied when it could be moved Change-Id: I6709a11d4dbc508289675f9e3f1ed81ff6e21223 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194304 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/canvas/source/opengl/ogl_canvashelper.cxx b/canvas/source/opengl/ogl_canvashelper.cxx index f7416b0b0ebd..cf83446c3d03 100644 --- a/canvas/source/opengl/ogl_canvashelper.cxx +++ b/canvas/source/opengl/ogl_canvashelper.cxx @@ -569,10 +569,8 @@ namespace oglcanvas { // copy state from Gradient polypoly locally // (given object might change!) - const ::canvas::ParametricPolyPolygon::Values aValues( - pGradient->getValues() ); - rAct.maFunction = [aValues = aValues, aTexture = textures[0]] + rAct.maFunction = [aValues = pGradient->getValues(), aTexture = textures[0]] (const CanvasHelper& rHelper, const basegfx::B2DHomMatrix& rTransform, GLenum eSrcBlend,
