summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-12-07 09:59:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-12-07 11:24:19 +0100
commit01872509d4d46e9e86d4371c9ef2034ab4b43fe4 (patch)
tree4877cffb526e260ae5a846a03985722b531ab4e3 /sw
parentd497d70a9bec0d174696177d93c141387cd0dbd0 (diff)
-Werror,-Wunused-private-field
Change-Id: I4a37e6aacbcce18f17e4b2eebecf43c0b1679f62
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx4
-rw-r--r--sw/source/ui/inc/swtablerep.hxx3
-rw-r--r--sw/source/ui/shells/tabsh.cxx2
-rw-r--r--sw/source/ui/table/swtablerep.cxx3
4 files changed, 5 insertions, 7 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index 617da5ae4df1..3797e7b3997a 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -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 );
diff --git a/sw/source/ui/inc/swtablerep.hxx b/sw/source/ui/inc/swtablerep.hxx
index 996d0b26cc41..6efa1edf1187 100644
--- a/sw/source/ui/inc/swtablerep.hxx
+++ b/sw/source/ui/inc/swtablerep.hxx
@@ -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;
diff --git a/sw/source/ui/shells/tabsh.cxx b/sw/source/ui/shells/tabsh.cxx
index db27f1da2ec5..ff1e40116434 100644
--- a/sw/source/ui/shells/tabsh.cxx
+++ b/sw/source/ui/shells/tabsh.cxx
@@ -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;
diff --git a/sw/source/ui/table/swtablerep.cxx b/sw/source/ui/table/swtablerep.cxx
index 08d11669843e..4fddcae6b57c 100644
--- a/sw/source/ui/table/swtablerep.cxx
+++ b/sw/source/ui/table/swtablerep.cxx
@@ -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)