summaryrefslogtreecommitdiff
path: root/canvas/source/directx/dx_textlayout_drawhelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/directx/dx_textlayout_drawhelper.cxx')
-rw-r--r--canvas/source/directx/dx_textlayout_drawhelper.cxx4
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);