diff options
Diffstat (limited to 'vcl/source/outdev/text.cxx')
-rw-r--r-- | vcl/source/outdev/text.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx index 78aca0e192d7..f6808fae3a48 100644 --- a/vcl/source/outdev/text.cxx +++ b/vcl/source/outdev/text.cxx @@ -57,7 +57,7 @@ ImplMultiTextLineInfo::ImplMultiTextLineInfo() { - mpLines = new PImplTextLineInfo[MULTITEXTLINEINFO_RESIZE]; + mpLines = new ImplTextLineInfo*[MULTITEXTLINEINFO_RESIZE]; mnLines = 0; mnSize = MULTITEXTLINEINFO_RESIZE; } @@ -74,8 +74,8 @@ void ImplMultiTextLineInfo::AddLine( ImplTextLineInfo* pLine ) if ( mnSize == mnLines ) { mnSize += MULTITEXTLINEINFO_RESIZE; - PImplTextLineInfo* pNewLines = new PImplTextLineInfo[mnSize]; - memcpy( pNewLines, mpLines, mnLines*sizeof(PImplTextLineInfo) ); + ImplTextLineInfo** pNewLines = new ImplTextLineInfo*[mnSize]; + memcpy( pNewLines, mpLines, mnLines*sizeof(ImplTextLineInfo*) ); mpLines = pNewLines; } |