summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwpobjid.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-14 16:31:33 +0200
committerNoel Grandin <noel@peralex.com>2016-01-15 09:36:41 +0200
commit52e69bfbba7220fe4181098102876f0e83ffbee1 (patch)
tree25965e6854cd5b49c0ead66a508fe1a60090b43a /lotuswordpro/source/filter/lwpobjid.cxx
parent602a64939da2df486099eba967aa9148ced1d8d4 (diff)
loplugin:unusedmethods unused return value in lotuswordpro
Change-Id: Ibed85be78e05dc0e6474d688ef0e0dea401758ac
Diffstat (limited to 'lotuswordpro/source/filter/lwpobjid.cxx')
-rw-r--r--lotuswordpro/source/filter/lwpobjid.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/lotuswordpro/source/filter/lwpobjid.cxx b/lotuswordpro/source/filter/lwpobjid.cxx
index dd4dbe9265b7..c6d609ddf656 100644
--- a/lotuswordpro/source/filter/lwpobjid.cxx
+++ b/lotuswordpro/source/filter/lwpobjid.cxx
@@ -91,13 +91,14 @@ sal_uInt32 LwpObjectID::Read(LwpObjectStream *pObj)
* if index>0, lowid is get from time table per the index
* else index+lowid+highid
*/
-sal_uInt32 LwpObjectID::ReadIndexed(LwpSvStream *pStrm)
+void LwpObjectID::ReadIndexed(LwpSvStream *pStrm)
{
//note the m_nLow store the index instead of time from the timetable as in LWP
m_bIsCompressed = false;
if( LwpFileHeader::m_nFileRevision < 0x000B)
{
- return Read(pStrm);
+ Read(pStrm);
+ return;
}
pStrm->ReadUInt8( m_nIndex );
@@ -116,7 +117,7 @@ sal_uInt32 LwpObjectID::ReadIndexed(LwpSvStream *pStrm)
pStrm->ReadUInt32( m_nLow );
}
pStrm->ReadUInt16( m_nHigh );
- return DiskSizeIndexed();
+ DiskSizeIndexed();
}
/**
@@ -153,21 +154,19 @@ sal_uInt32 LwpObjectID::ReadIndexed(LwpObjectStream *pStrm)
* else lowid equals to the lowid of previous low id
* and high id = the high id of previous id + diff +1
*/
-sal_uInt32 LwpObjectID::ReadCompressed( LwpObjectStream* pObj, LwpObjectID &prev )
+void LwpObjectID::ReadCompressed( LwpObjectStream* pObj, LwpObjectID &prev )
{
sal_uInt8 diff = pObj->QuickReaduInt8();
- sal_uInt32 len=1;
if (diff == 255)
{
- len += Read(pObj);
+ Read(pObj);
}
else
{
m_nLow = prev.GetLow();
m_nHigh = prev.GetHigh() + diff +1;
}
- return len;
}
/**
* @descr return the size of indexed object id