summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-05-24 15:16:38 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-05-24 15:46:43 +0200
commit75648d6e9723987cab672dca89cf0e5e6cb8e9e9 (patch)
treec9323b607a0089b8092fa0f89309694f77303bde /chart2
parent347c4f4355624bd820091d125c035dd7a501d018 (diff)
cppcheck: redundantAssignment
Change-Id: Icf71dc6735b9b60f6fea4dc8c78877bb652fbe95
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/tools/AxisHelper.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/chart2/source/tools/AxisHelper.cxx b/chart2/source/tools/AxisHelper.cxx
index 6157fbb7b079..df0baa4327e9 100644
--- a/chart2/source/tools/AxisHelper.cxx
+++ b/chart2/source/tools/AxisHelper.cxx
@@ -88,11 +88,9 @@ void AxisHelper::removeExplicitScaling( ScaleData& rScaleData )
bool AxisHelper::isLogarithmic( const Reference< XScaling >& xScaling )
{
- bool bReturn = false;
Reference< lang::XServiceName > xServiceName( xScaling, uno::UNO_QUERY );
- bReturn =( xServiceName.is() && (xServiceName->getServiceName()).equals(
- "com.sun.star.chart2.LogarithmicScaling"));
- return bReturn;
+ return xServiceName.is() && (xServiceName->getServiceName()).equals(
+ "com.sun.star.chart2.LogarithmicScaling");
}
chart2::ScaleData AxisHelper::getDateCheckedScale( const Reference< chart2::XAxis >& xAxis, ChartModel& rModel )