diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-30 12:49:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-01 11:01:15 +0200 |
commit | 78fece3619e986ae0e4a41594965af83214f7da8 (patch) | |
tree | 4922b64c3d674e53be5c4c3b99513eefce0325a8 /basegfx | |
parent | 48010539f695bc269034f12cf72aa0665cca10de (diff) |
small optimisation
Change-Id: I10d18eddf0dfa96d468c8cfab22494779e38358f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136718
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/matrix/b2dhommatrix.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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<sal_uInt16[]> pIndex( new sal_uInt16[Impl2DHomMatrix_Base::getEdgeLength()] ); + sal_uInt16* pIndex = static_cast<sal_uInt16*>(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; } |