diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-13 13:43:57 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-13 13:59:52 +0200 |
commit | 2b4fd256e9f8594c31e7e8045dccae5afdc62e16 (patch) | |
tree | 09d248841a5f0765516a7cf82b72cec529287eb7 /sw/source/filter/ww8/ww8par3.cxx | |
parent | 20b0c8fc3bb5bcf4ae8ba81c88aaa5726dbcf9e2 (diff) |
loplugin:unusedmethods unused return value in sw/
Change-Id: Iaec71124b04ed678686d646df3ff0892585d3d50
Diffstat (limited to 'sw/source/filter/ww8/ww8par3.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8par3.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index ba0d4f03894a..0f457f9821f7 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -2139,26 +2139,23 @@ bool SwWW8ImplReader::ImportFormulaControl(WW8FormulaControl &aFormula, return bRet; } -bool SwMSConvertControls::InsertFormula(WW8FormulaControl &rFormula) +void SwMSConvertControls::InsertFormula(WW8FormulaControl &rFormula) { - bool bRet = false; - const uno::Reference< lang::XMultiServiceFactory > & rServiceFactory = GetServiceFactory(); if(!rServiceFactory.is()) - return false; + return; awt::Size aSz; uno::Reference< form::XFormComponent> xFComp; - if ((bRet = rFormula.Import(rServiceFactory, xFComp, aSz))) + if (rFormula.Import(rServiceFactory, xFComp, aSz)) { uno::Reference <drawing::XShape> xShapeRef; - if ((bRet = InsertControl(xFComp, aSz, &xShapeRef, false))) + if (InsertControl(xFComp, aSz, &xShapeRef, false)) GetShapes()->add(xShapeRef); } - return bRet; } void WW8FormulaControl::FormulaRead(SwWw8ControlType nWhich, |