summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-14 16:31:47 +0200
committerNoel Grandin <noel@peralex.com>2016-01-15 09:36:41 +0200
commit802765dbe5f79748453c985da08824fb9ddefe11 (patch)
treebc2b86b325f419baa41a08020cf746523661447c /oox
parent52e69bfbba7220fe4181098102876f0e83ffbee1 (diff)
loplugin:unusedmethods unused return value in oox,package
Change-Id: I63862c3ce32a1106b7de037f422e7e5480e8bfd6
Diffstat (limited to 'oox')
-rw-r--r--oox/inc/drawingml/chart/converterbase.hxx5
-rw-r--r--oox/source/drawingml/chart/converterbase.cxx4
2 files changed, 3 insertions, 6 deletions
diff --git a/oox/inc/drawingml/chart/converterbase.hxx b/oox/inc/drawingml/chart/converterbase.hxx
index 9393a302e05b..df6f5ea62ee2 100644
--- a/oox/inc/drawingml/chart/converterbase.hxx
+++ b/oox/inc/drawingml/chart/converterbase.hxx
@@ -136,9 +136,8 @@ public:
Returns true, if a manual position and size could be calculated. */
bool convertFromModel( PropertySet& rPropSet );
- /** Tries to set the position from the contained OOXML layout model.
- Returns true, if a manual position could be calculated. */
- bool convertFromModel(
+ /** Tries to set the position from the contained OOXML layout model. */
+ void convertFromModel(
const css::uno::Reference< css::drawing::XShape >& rxShape,
double fRotationAngle );
bool getAutoLayout(){return mrModel.mbAutoLayout;}
diff --git a/oox/source/drawingml/chart/converterbase.cxx b/oox/source/drawingml/chart/converterbase.cxx
index 4f66eb0043d8..8bc82e0ec96d 100644
--- a/oox/source/drawingml/chart/converterbase.cxx
+++ b/oox/source/drawingml/chart/converterbase.cxx
@@ -385,7 +385,7 @@ bool LayoutConverter::convertFromModel( PropertySet& rPropSet )
return false;
}
-bool LayoutConverter::convertFromModel( const Reference< XShape >& rxShape, double fRotationAngle )
+void LayoutConverter::convertFromModel( const Reference< XShape >& rxShape, double fRotationAngle )
{
if( !mrModel.mbAutoLayout )
{
@@ -407,10 +407,8 @@ bool LayoutConverter::convertFromModel( const Reference< XShape >& rxShape, doub
aShapePos.Y += static_cast< sal_Int32 >( fSin * aShapeSize.Width + 0.5 );
// set the resulting position at the shape
rxShape->setPosition( aShapePos );
- return true;
}
}
- return false;
}
} // namespace chart