summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaol?n McNamara <cmc@openoffice.org>2010-07-10 20:30:21 +0100
committerCaol?n McNamara <cmc@openoffice.org>2010-07-10 20:30:21 +0100
commita76248fe5eb3887a162995c489b63c3e1b81e442 (patch)
tree4cc0a472cac17c2cfaeb4fc1c2b3f7f8069cbde5
parent55bb785bb2e2c251c9f6c951fdad043fb8b6517b (diff)
cmcfixes76: #i113073# redundant dereferencesooo/DEV300_m85
-rw-r--r--sw/source/filter/ww8/ww8par2.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 176abfa740..8f0789d5b0 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -1509,15 +1509,15 @@ void WW8TabBandDesc::ProcessSpacing(const BYTE* pParams)
return;
mbHasSpacing=true;
#ifdef DBG_UTIL
- BYTE nWhichCell =
-#endif
- *pParams++;
+ BYTE nWhichCell = *pParams;
ASSERT(nWhichCell == 0, "Expected cell to be 0!");
- *pParams++; //unknown byte
+#endif
+ ++pParams; //Skip which cell
+ ++pParams; //unknown byte
BYTE nSideBits = *pParams++;
ASSERT(nSideBits < 0x10, "Unexpected value for nSideBits");
- *pParams++; //unknown byte
+ ++pParams; //unknown byte
USHORT nValue = SVBT16ToShort( pParams );
for (int i = wwTOP; i <= wwRIGHT; i++)
{
@@ -1555,7 +1555,7 @@ void WW8TabBandDesc::ProcessSpecificSpacing(const BYTE* pParams)
if (nWhichCell >= MAX_COL + 1)
return;
- *pParams++; //unknown byte
+ ++pParams; //unknown byte
BYTE nSideBits = *pParams++;
ASSERT(nSideBits < 0x10, "Unexpected value for nSideBits");
nOverrideSpacing[nWhichCell] |= nSideBits;
@@ -1563,10 +1563,10 @@ void WW8TabBandDesc::ProcessSpecificSpacing(const BYTE* pParams)
ASSERT(nOverrideSpacing[nWhichCell] < 0x10,
"Unexpected value for nSideBits");
#ifdef DBG_UTIL
- BYTE nUnknown2 =
-#endif
- *pParams++;
+ BYTE nUnknown2 = *pParams;
ASSERT(nUnknown2 == 0x3, "Unexpected value for spacing2");
+#endif
+ ++pParams;
USHORT nValue = SVBT16ToShort( pParams );
for (int i=0; i < 4; i++)