-Werror,-Wunused-private-field

Change-Id: I4a37e6aacbcce18f17e4b2eebecf43c0b1679f62
This commit is contained in:
Stephan Bergmann
2012-12-07 09:59:24 +01:00
parent d497d70a9b
commit 01872509d4
4 changed files with 5 additions and 7 deletions

View File

@@ -710,7 +710,7 @@ IMPL_LINK( SwInsertDBColAutoPilot, TblFmtHdl, PushButton*, pButton )
SwTabCols aTabCols; SwTabCols aTabCols;
aTabCols.SetRight( nWidth ); aTabCols.SetRight( nWidth );
aTabCols.SetRightMax( nWidth ); aTabCols.SetRightMax( nWidth );
pRep = new SwTableRep( aTabCols, sal_False ); pRep = new SwTableRep( aTabCols );
pRep->SetAlign( text::HoriOrientation::NONE ); pRep->SetAlign( text::HoriOrientation::NONE );
pRep->SetSpace( nWidth ); pRep->SetSpace( nWidth );
pRep->SetWidth( nWidth ); pRep->SetWidth( nWidth );
@@ -736,7 +736,7 @@ IMPL_LINK( SwInsertDBColAutoPilot, TblFmtHdl, PushButton*, pButton )
aTabCols.Insert( nW, sal_False, n ); aTabCols.Insert( nW, sal_False, n );
} }
delete pRep; delete pRep;
pRep = new SwTableRep( aTabCols, sal_False ); pRep = new SwTableRep( aTabCols );
pRep->SetAlign( text::HoriOrientation::NONE ); pRep->SetAlign( text::HoriOrientation::NONE );
pRep->SetSpace( nWidth ); pRep->SetSpace( nWidth );
pRep->SetWidth( nWidth ); pRep->SetWidth( nWidth );

View File

@@ -38,13 +38,12 @@ class SW_DLLPUBLIC SwTableRep
sal_uInt16 nColCount; sal_uInt16 nColCount;
sal_uInt16 nAllCols; sal_uInt16 nAllCols;
sal_uInt16 nWidthPercent; sal_uInt16 nWidthPercent;
bool bComplex : 1;
sal_Bool bLineSelected : 1; sal_Bool bLineSelected : 1;
sal_Bool bWidthChanged : 1; sal_Bool bWidthChanged : 1;
sal_Bool bColsChanged : 1; sal_Bool bColsChanged : 1;
public: public:
SwTableRep( const SwTabCols& rTabCol, bool bComplex ); SwTableRep( const SwTabCols& rTabCol );
~SwTableRep(); ~SwTableRep();
sal_Bool FillTabCols( SwTabCols& rTabCol ) const; sal_Bool FillTabCols( SwTabCols& rTabCol ) const;

View File

@@ -214,7 +214,7 @@ static SwTableRep* lcl_TableParamToItemSet( SfxItemSet& rSet, SwWrtShell &rSh )
// Pointer wird nach der Dialogausfuehrung geloescht // Pointer wird nach der Dialogausfuehrung geloescht
SwTableRep* pRep = new SwTableRep( aTabCols, rSh.IsTblComplex()); SwTableRep* pRep = new SwTableRep( aTabCols );
pRep->SetSpace(aCols.GetRightMax()); pRep->SetSpace(aCols.GetRightMax());
sal_uInt16 nPercent = 0; sal_uInt16 nPercent = 0;

View File

@@ -55,7 +55,7 @@
#include "swtablerep.hxx" #include "swtablerep.hxx"
SwTableRep::SwTableRep( const SwTabCols& rTabCol, bool bCplx ) SwTableRep::SwTableRep( const SwTabCols& rTabCol )
: :
nTblWidth(0), nTblWidth(0),
nSpace(0), nSpace(0),
@@ -63,7 +63,6 @@ SwTableRep::SwTableRep( const SwTabCols& rTabCol, bool bCplx )
nRightSpace(0), nRightSpace(0),
nAlign(0), nAlign(0),
nWidthPercent(0), nWidthPercent(0),
bComplex(bCplx),
bLineSelected(sal_False), bLineSelected(sal_False),
bWidthChanged(sal_False), bWidthChanged(sal_False),
bColsChanged(sal_False) bColsChanged(sal_False)