diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-10 00:49:50 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-10 05:23:54 +0100 |
commit | 2ddf3a73030c04f5060654894dc5a6543cbe2ed0 (patch) | |
tree | 1ff189c4bf28ac49ed001b1ba25914b59ce55a67 /chart2 | |
parent | vector and rtl::Reference over manual ref-counting. (diff) | |
download | core-2ddf3a73030c04f5060654894dc5a6543cbe2ed0.tar.gz core-2ddf3a73030c04f5060654894dc5a6543cbe2ed0.zip |
add two accidently removed return statements
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/axes/VCartesianAxis.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx index 264450d3bda3..f56cae0669b0 100644 --- a/chart2/source/view/axes/VCartesianAxis.cxx +++ b/chart2/source/view/axes/VCartesianAxis.cxx @@ -556,7 +556,7 @@ void VCartesianAxis::createAllTickInfos( ::std::vector< ::std::vector< TickInfo TickIter* VCartesianAxis::createLabelTickIterator( sal_Int32 nTextLevel ) { if( nTextLevel>=0 && nTextLevel < static_cast< sal_Int32 >(m_aAllTickInfos.size()) ) - new PureTickIter( m_aAllTickInfos[nTextLevel] ); + return new PureTickIter( m_aAllTickInfos[nTextLevel] ); return NULL; } @@ -573,7 +573,7 @@ TickIter* VCartesianAxis::createMaximumLabelTickIterator( sal_Int32 nTextLevel ) if( !m_aAllTickInfos.empty() ) { sal_Int32 nLongestLabelIndex = m_bUseTextLabels ? this->getIndexOfLongestLabel( m_aTextLabels ) : 0; - new MaxLabelTickIter( m_aAllTickInfos[0], nLongestLabelIndex ); + return new MaxLabelTickIter( m_aAllTickInfos[0], nLongestLabelIndex ); } } } |