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

View File

@@ -38,13 +38,12 @@ class SW_DLLPUBLIC SwTableRep
sal_uInt16 nColCount;
sal_uInt16 nAllCols;
sal_uInt16 nWidthPercent;
bool bComplex : 1;
sal_Bool bLineSelected : 1;
sal_Bool bWidthChanged : 1;
sal_Bool bColsChanged : 1;
public:
SwTableRep( const SwTabCols& rTabCol, bool bComplex );
SwTableRep( const SwTabCols& rTabCol );
~SwTableRep();
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
SwTableRep* pRep = new SwTableRep( aTabCols, rSh.IsTblComplex());
SwTableRep* pRep = new SwTableRep( aTabCols );
pRep->SetSpace(aCols.GetRightMax());
sal_uInt16 nPercent = 0;

View File

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