summaryrefslogtreecommitdiff
path: root/vcl/win/source
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-09-28 23:06:51 +0200
committerMichael Stahl <mstahl@redhat.com>2015-09-29 14:57:39 +0200
commit810257500200391de71c8591ce24b8a942249bd5 (patch)
treeeb74a6b6b2aa57e2c1624b105dd560dc64302d6f /vcl/win/source
parentd70302ef5c18207a78f6c81aed85c12260f73820 (diff)
vcl: remove alloca() in UniscribeLayout::GetCaretPositions()
Change-Id: I0caab3b69b10aba6a5d45a11f8e9724b4d3c6d83
Diffstat (limited to 'vcl/win/source')
-rw-r--r--vcl/win/source/gdi/winlayout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx
index b3562eec9a63..454ecaecefa5 100644
--- a/vcl/win/source/gdi/winlayout.cxx
+++ b/vcl/win/source/gdi/winlayout.cxx
@@ -1873,7 +1873,7 @@ void UniscribeLayout::GetCaretPositions( int nMaxIdx, long* pCaretXArray ) const
int i;
for( i = 0; i < nMaxIdx; ++i )
pCaretXArray[ i ] = -1;
- long* const pGlyphPos = (long*)alloca( (mnGlyphCount+1) * sizeof(long) );
+ std::unique_ptr<long[]> const pGlyphPos = new long[mnGlyphCount + 1];
for( i = 0; i <= mnGlyphCount; ++i )
pGlyphPos[ i ] = -1;