diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-29 14:04:27 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-30 09:13:24 +0200 |
commit | d16d9f950f8cb6d8948875372c9ff1f0aae9fb7a (patch) | |
tree | b8d2146504c704fb9dfa11ea835ae39ff49e3dec /vcl/source/outdev | |
parent | fa5822ce69bfc80ac8b1c5caa98de7e5c7ccf568 (diff) |
remove some unnecessary typedefs to pointer
that were really not helping make the code any clearer.
Found with a search
git grep -P 'typedef\s+\w+\s*\*\s*\w+\;'
and manual inspection
Change-Id: I6a5c031e9e060ad3623a7586ec8a8cc4fe6252e9
Diffstat (limited to 'vcl/source/outdev')
-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 392d4ef056ff..381d20ac4705 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; } |