summaryrefslogtreecommitdiffstats
path: root/sw/source/uibase/table
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-22 10:58:54 +0200
committerNoel Grandin <noel@peralex.com>2016-03-22 11:47:35 +0200
commit9585c8b8c8d8724cc1bad4a2060c828c15599929 (patch)
tree170c8fc738aa1ebfdd554b1faa0aac47e2dc4f64 /sw/source/uibase/table
parenttdf#98646 Fixed freeze by flattening loops (diff)
downloadcore-9585c8b8c8d8724cc1bad4a2060c828c15599929.tar.gz
core-9585c8b8c8d8724cc1bad4a2060c828c15599929.zip
loplugin:constantparam in sw
Change-Id: I56925a8fd776b3ee787cc26adbaa08c58dd022c0
Diffstat (limited to 'sw/source/uibase/table')
-rw-r--r--sw/source/uibase/table/chartins.cxx2
-rw-r--r--sw/source/uibase/table/tablemgr.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/table/chartins.cxx b/sw/source/uibase/table/chartins.cxx
index e1d39e7661c1..a29680e955ee 100644
--- a/sw/source/uibase/table/chartins.cxx
+++ b/sw/source/uibase/table/chartins.cxx
@@ -163,7 +163,7 @@ void SwInsertChart(vcl::Window* pParent, SfxBindings* pBindings )
}
SwFlyFrameFormat *pFlyFrameFormat = nullptr;
- xChartModel.set( SwTableFUNC( &rWrtShell, false ).InsertChart( xDataProvider, xDataProvider.is(), aRangeString, &pFlyFrameFormat ));
+ xChartModel.set( SwTableFUNC( &rWrtShell ).InsertChart( xDataProvider, xDataProvider.is(), aRangeString, &pFlyFrameFormat ));
//open wizard
//@todo get context from writer if that has one
diff --git a/sw/source/uibase/table/tablemgr.cxx b/sw/source/uibase/table/tablemgr.cxx
index e6bed55bb587..a82738dce1db 100644
--- a/sw/source/uibase/table/tablemgr.cxx
+++ b/sw/source/uibase/table/tablemgr.cxx
@@ -166,10 +166,10 @@ void SwTableFUNC::InitTabCols()
pSh->GetTabCols( aCols );
}
-SwTableFUNC::SwTableFUNC(SwWrtShell *pShell, bool bCopyFormat)
+SwTableFUNC::SwTableFUNC(SwWrtShell *pShell)
: pFormat(pShell->GetTableFormat()),
pSh(pShell),
- bCopy(bCopyFormat)
+ bCopy(false)
{
// if applicable copy the format for edit
if( pFormat && bCopy )