Kaydet (Commit) 01872509 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror,-Wunused-private-field

Change-Id: I4a37e6aacbcce18f17e4b2eebecf43c0b1679f62
üst d497d70a
......@@ -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 );
......
......@@ -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;
......
......@@ -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;
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment