summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMaciej Rumianowski <maciej.rumianowski@gmail.com>2011-10-03 22:50:47 +0200
committerJan Holesovsky <kendy@suse.cz>2011-10-07 00:21:07 +0200
commit37836e3ba37c1ff7c303047a418dcbc3ef390afe (patch)
tree925bfc0e9f53b418fa455a3591c226033310f10a /sw
parent6cdc31837c73accca69ed9b1702e269f50c96bff (diff)
Remove unused Variables in WW8Export
Variables were NULL or 0 saved and restored but nothing more.
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/wrtww8.cxx15
-rw-r--r--sw/source/filter/ww8/wrtww8.hxx4
2 files changed, 0 insertions, 19 deletions
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx
index f1386b5b124d..f21a3aba49d5 100644
--- a/sw/source/filter/ww8/wrtww8.cxx
+++ b/sw/source/filter/ww8/wrtww8.cxx
@@ -1755,8 +1755,6 @@ void MSWordExportBase::SaveData( sal_uLong nStt, sal_uLong nEnd )
// WW8Export only stuff - zeroed here not to issue warnings
aData.pOOld = NULL;
- aData.mpTableAtOld = NULL;
- aData.mnTableStdAtLenOld = 0;
// Common stuff
aData.pOldPam = pCurPam;
@@ -1829,11 +1827,6 @@ void WW8Export::SaveData( sal_uLong nStt, sal_uLong nEnd )
else
rData.pOOld = 0; // reuse pO
- rData.mpTableAtOld = mpTableAt;
- mpTableAt = NULL;
- rData.mnTableStdAtLenOld = mnTableStdAtLen;
- mnTableStdAtLen = 0;
-
rData.bOldWriteAll = GetWriter().bWriteAll;
GetWriter().bWriteAll = true;
}
@@ -1851,12 +1844,6 @@ void WW8Export::RestoreData()
pO = rData.pOOld;
}
- OSL_ENSURE( !mpTableAt || !mpTableAt->Count(), "mpTableAt is not empty in WW8Export::RestoreData()" );
- if ( mpTableAt )
- delete mpTableAt;
- mpTableAt = rData.mpTableAtOld;
- mnTableStdAtLen = rData.mnTableStdAtLenOld;
-
MSWordExportBase::RestoreData();
}
@@ -3361,8 +3348,6 @@ WW8Export::WW8Export( SwWW8Writer *pWriter,
bool bIsWW8 )
: MSWordExportBase( pDocument, pCurrentPam, pOriginalPam ),
pO( NULL ),
- mpTableAt( NULL ),
- mnTableStdAtLen( 0 ),
pSepx( NULL ),
bWrtWW8( bIsWW8 ),
m_pWriter( pWriter ),
diff --git a/sw/source/filter/ww8/wrtww8.hxx b/sw/source/filter/ww8/wrtww8.hxx
index 47ddc568d5af..691c9126dbc4 100644
--- a/sw/source/filter/ww8/wrtww8.hxx
+++ b/sw/source/filter/ww8/wrtww8.hxx
@@ -429,8 +429,6 @@ struct MSWordSaveData
Point* pOldFlyOffset;
RndStdIds eOldAnchorType;
ww::bytes* pOOld; ///< WW8Export only
- WW8Bytes* mpTableAtOld; ///< WW8Export only: Additional buffer for the output of the tables
- sal_uInt16 mnTableStdAtLenOld; ///< WW8Export only: Standard length of mpTableAt
SwPaM* pOldPam, *pOldEnd;
const sw::Frame* pOldFlyFmt;
const SwPageDesc* pOldPageDesc;
@@ -913,8 +911,6 @@ class WW8Export : public MSWordExportBase
{
public:
ww::bytes* pO; ///< Buffer
- WW8Bytes* mpTableAt; ///< Additional buffer for the output of the tables
- sal_uInt16 mnTableStdAtLen; ///< Standard length of mpTableAt
SvStream *pTableStrm, *pDataStrm; ///< Streams for WW97 Export