diff options
-rw-r--r-- | vcl/win/source/gdi/winlayout.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx index 0572b2186f35..ac9ec6f68c09 100644 --- a/vcl/win/source/gdi/winlayout.cxx +++ b/vcl/win/source/gdi/winlayout.cxx @@ -1877,7 +1877,7 @@ void UniscribeLayout::GetCaretPositions( int nMaxIdx, long* pCaretXArray ) const int i; for( i = 0; i < nMaxIdx; ++i ) pCaretXArray[ i ] = -1; - std::unique_ptr<long[]> const pGlyphPos = new long[mnGlyphCount + 1]; + std::unique_ptr<long[]> const pGlyphPos(new long[mnGlyphCount + 1]); for( i = 0; i <= mnGlyphCount; ++i ) pGlyphPos[ i ] = -1; |