From 78fece3619e986ae0e4a41594965af83214f7da8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 30 Jun 2022 12:49:09 +0200 Subject: small optimisation Change-Id: I10d18eddf0dfa96d468c8cfab22494779e38358f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136718 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basegfx/source/matrix/b2dhommatrix.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'basegfx/source') diff --git a/basegfx/source/matrix/b2dhommatrix.cxx b/basegfx/source/matrix/b2dhommatrix.cxx index f3d2622db27a..c21a4dceeccd 100644 --- a/basegfx/source/matrix/b2dhommatrix.cxx +++ b/basegfx/source/matrix/b2dhommatrix.cxx @@ -103,12 +103,12 @@ namespace basegfx } Impl2DHomMatrix aWork(*mpImpl); - std::unique_ptr pIndex( new sal_uInt16[Impl2DHomMatrix_Base::getEdgeLength()] ); + sal_uInt16* pIndex = static_cast(alloca( sizeof(sal_uInt16) * Impl2DHomMatrix_Base::getEdgeLength() )); sal_Int16 nParity; - if(aWork.ludcmp(pIndex.get(), nParity)) + if(aWork.ludcmp(pIndex, nParity)) { - mpImpl->doInvert(aWork, pIndex.get()); + mpImpl->doInvert(aWork, pIndex); return true; } -- cgit