diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-30 22:03:44 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-30 22:26:06 +0200 |
commit | b9f098c5a2223417af89d69fd8c0548570fd3a9d (patch) | |
tree | 175282049a9e7a313f4c2586b8e84a715f17ff75 /canvas | |
parent | 22ba855d1a2317361c6ad8b631ae1bd707887435 (diff) |
Another tools::Long->sal_Int32 in the DX array
A leftover from commit bc413e15fae3672f580894a3cd7b077d533d8e6c
Change-Id: Ibacdf71f608657a4488c84b88ef54fb52d3e8439
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124496
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/directx/dx_textlayout_drawhelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/directx/dx_textlayout_drawhelper.cxx b/canvas/source/directx/dx_textlayout_drawhelper.cxx index 6b5a389f77ae..e7623219c798 100644 --- a/canvas/source/directx/dx_textlayout_drawhelper.cxx +++ b/canvas/source/directx/dx_textlayout_drawhelper.cxx @@ -206,14 +206,14 @@ namespace dxcanvas { // create the DXArray const sal_Int32 nLen( rLogicalAdvancements.getLength() ); - std::unique_ptr<::tools::Long[]> pDXArray( new ::tools::Long[nLen] ); + std::unique_ptr<sal_Int32[]> pDXArray( std::make_unique<sal_Int32[]>(nLen) ); for( sal_Int32 i=0; i<nLen; ++i ) pDXArray[i] = basegfx::fround( rLogicalAdvancements[i] ); // draw the String xVirtualDevice->DrawTextArray( aEmptyPoint, aText, - o3tl::span<const ::tools::Long>( pDXArray.get(), nLen ), + o3tl::span( pDXArray.get(), nLen ), rText.StartPosition, rText.Length, bIsRTL ? SalLayoutFlags::BiDiRtl : SalLayoutFlags::NONE); |