diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-14 16:32:07 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-15 09:36:42 +0200 |
commit | 098462c6f69c40422c74cef8f052b7b1ff0c90e8 (patch) | |
tree | b8d3e6f848b18753c9fbd91468b8094b029af742 /sc/source/core/data/dpobject.cxx | |
parent | f19e32b101d56ceb7215a6a9d45d39a2cd264189 (diff) |
loplugin:unusedmethods unused return value in sc
Change-Id: I3ccc98d2e042120093e2e8508518681588692393
Diffstat (limited to 'sc/source/core/data/dpobject.cxx')
-rw-r--r-- | sc/source/core/data/dpobject.cxx | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx index 4effa69d84ff..bff5524d9957 100644 --- a/sc/source/core/data/dpobject.cxx +++ b/sc/source/core/data/dpobject.cxx @@ -2194,12 +2194,12 @@ void lcl_FillOldFields( ScPivotFieldVector& rFields, rFields.swap(aFields); } -bool ScDPObject::FillOldParam(ScPivotParam& rParam) const +void ScDPObject::FillOldParam(ScPivotParam& rParam) const { const_cast<ScDPObject*>(this)->CreateObjects(); // xSource is needed for field numbers if (!xSource.is()) - return false; + return; rParam.nCol = aOutRange.aStart.Col(); rParam.nRow = aOutRange.aStart.Row(); @@ -2237,7 +2237,6 @@ bool ScDPObject::FillOldParam(ScPivotParam& rParam) const // no error } } - return true; } static void lcl_FillLabelData( ScDPLabelData& rData, const uno::Reference< beans::XPropertySet >& xDimProp ) @@ -2353,34 +2352,34 @@ bool ScDPObject::FillLabelDataForDimension( return true; } -bool ScDPObject::FillLabelData(sal_Int32 nDim, ScDPLabelData& rLabels) +void ScDPObject::FillLabelData(sal_Int32 nDim, ScDPLabelData& rLabels) { CreateObjects(); if (!xSource.is()) - return false; + return; uno::Reference<container::XNameAccess> xDimsName = xSource->getDimensions(); uno::Reference<container::XIndexAccess> xDims = new ScNameToIndexAccess( xDimsName ); sal_Int32 nDimCount = xDims->getCount(); if (nDimCount <= 0 || nDim >= nDimCount) - return false; + return; - return FillLabelDataForDimension(xDims, nDim, rLabels); + FillLabelDataForDimension(xDims, nDim, rLabels); } -bool ScDPObject::FillLabelData(ScPivotParam& rParam) +void ScDPObject::FillLabelData(ScPivotParam& rParam) { rParam.maLabelArray.clear(); CreateObjects(); if (!xSource.is()) - return false; + return; uno::Reference<container::XNameAccess> xDimsName = xSource->getDimensions(); uno::Reference<container::XIndexAccess> xDims = new ScNameToIndexAccess( xDimsName ); sal_Int32 nDimCount = xDims->getCount(); if (nDimCount <= 0) - return false; + return; for (sal_Int32 nDim = 0; nDim < nDimCount; ++nDim) { @@ -2388,8 +2387,6 @@ bool ScDPObject::FillLabelData(ScPivotParam& rParam) FillLabelDataForDimension(xDims, nDim, *pNewLabel); rParam.maLabelArray.push_back(std::unique_ptr<ScDPLabelData>(pNewLabel)); } - - return true; } bool ScDPObject::GetHierarchiesNA( sal_Int32 nDim, uno::Reference< container::XNameAccess >& xHiers ) @@ -2409,16 +2406,13 @@ bool ScDPObject::GetHierarchiesNA( sal_Int32 nDim, uno::Reference< container::XN return bRet; } -bool ScDPObject::GetHierarchies( sal_Int32 nDim, uno::Sequence< OUString >& rHiers ) +void ScDPObject::GetHierarchies( sal_Int32 nDim, uno::Sequence< OUString >& rHiers ) { - bool bRet = false; uno::Reference< container::XNameAccess > xHiersNA; if( GetHierarchiesNA( nDim, xHiersNA ) ) { rHiers = xHiersNA->getElementNames(); - bRet = true; } - return bRet; } sal_Int32 ScDPObject::GetUsedHierarchy( sal_Int32 nDim ) |