Kaydet (Commit) 81025750 authored tarafından Michael Stahl's avatar Michael Stahl

vcl: remove alloca() in UniscribeLayout::GetCaretPositions()

Change-Id: I0caab3b69b10aba6a5d45a11f8e9724b4d3c6d83
üst d70302ef
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment