summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/bento.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-29 14:04:27 +0200
committerNoel Grandin <noel@peralex.com>2015-06-30 09:13:24 +0200
commitd16d9f950f8cb6d8948875372c9ff1f0aae9fb7a (patch)
treeb8d2146504c704fb9dfa11ea835ae39ff49e3dec /lotuswordpro/source/filter/bento.hxx
parentfa5822ce69bfc80ac8b1c5caa98de7e5c7ccf568 (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 'lotuswordpro/source/filter/bento.hxx')
-rw-r--r--lotuswordpro/source/filter/bento.hxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/lotuswordpro/source/filter/bento.hxx b/lotuswordpro/source/filter/bento.hxx
index c9abbdab39c1..cf2f2ac2f2d8 100644
--- a/lotuswordpro/source/filter/bento.hxx
+++ b/lotuswordpro/source/filter/bento.hxx
@@ -132,8 +132,6 @@ UtDefClassP(CBenTypeName);
typedef unsigned char BenByte;
typedef unsigned short BenWord;
typedef unsigned long BenDWord;
-typedef void * BenDataPtr;
-typedef const void * BenConstDataPtr;
typedef unsigned long BenContainerPos;
typedef unsigned long BenObjectID;
@@ -216,9 +214,9 @@ public: // Internal methods
explicit LtcBenContainer(LwpSvStream * pStream);
~LtcBenContainer();
- BenError Read(BenDataPtr pBuffer, unsigned long MaxSize,
+ BenError Read(void * pBuffer, unsigned long MaxSize,
unsigned long * pAmtRead);
- BenError ReadKnownSize(BenDataPtr pBuffer, unsigned long Amt);
+ BenError ReadKnownSize(void * pBuffer, unsigned long Amt);
BenError SeekToPosition(BenContainerPos Pos);
BenError SeekFromEnd(long Offset);
@@ -267,7 +265,7 @@ class CBenValue : public CBenIDListElmt
{
public:
unsigned long GetValueSize();
- BenError ReadValueData(BenDataPtr pBuffer,
+ BenError ReadValueData(void * pBuffer,
unsigned long Offset, unsigned long MaxSize, unsigned long * pAmtRead);
pCBenProperty BEN_EXPORT GetProperty() { return cpProperty; }
@@ -351,14 +349,14 @@ public: // Internal methods
unsigned long Size) : CUtListElmt(&pValue->GetValueSegments())
{ cpValue = pValue; cImmediate = false; cPos = Pos;
cSize = Size; }
- CBenValueSegment(pCBenValue pValue, BenConstDataPtr pImmData,
+ CBenValueSegment(pCBenValue pValue, const void * pImmData,
unsigned short Size) : CUtListElmt(&pValue->GetValueSegments())
{ cpValue = pValue; cImmediate = true;
UtHugeMemcpy(cImmData, pImmData, Size); cSize = Size; }
CBenValueSegment(BenContainerPos Pos, unsigned long Size)
{ cpValue = NULL; cImmediate = false; cPos = Pos;
cSize = Size; }
- CBenValueSegment(BenConstDataPtr pImmData, unsigned short Size)
+ CBenValueSegment(const void * pImmData, unsigned short Size)
{ cpValue = NULL; cImmediate = true;
UtHugeMemcpy(cImmData, pImmData, Size); cSize = Size; }
bool IsLast()