summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-10-20 18:35:17 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-11-04 12:30:34 -0500
commit567208da4e3155e701e083567a99bad33d7cab6a (patch)
tree6ec05158d3c564b4eb3e6fb42d565f9b509540a7 /chart2
parent8bfc9a20ccea2689fec1ffe0654db1f95179bd4f (diff)
Mark these methods const.
Change-Id: Idf53b85d962406caf9ca1df636fffd8b3459baf5
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/axes/VCartesianAxis.cxx8
-rw-r--r--chart2/source/view/axes/VCartesianAxis.hxx6
2 files changed, 7 insertions, 7 deletions
diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx
index be13e64f5f29..e40c43392c33 100644
--- a/chart2/source/view/axes/VCartesianAxis.cxx
+++ b/chart2/source/view/axes/VCartesianAxis.cxx
@@ -428,8 +428,8 @@ TickInfo* MaxLabelTickIter::nextInfo()
return 0;
}
-bool VCartesianAxis::isBreakOfLabelsAllowed( const AxisLabelProperties& rAxisLabelProperties
- , bool bIsHorizontalAxis )
+bool VCartesianAxis::isBreakOfLabelsAllowed(
+ const AxisLabelProperties& rAxisLabelProperties, bool bIsHorizontalAxis ) const
{
if( m_aTextLabels.getLength() > 100 )
return false;
@@ -446,8 +446,8 @@ bool VCartesianAxis::isBreakOfLabelsAllowed( const AxisLabelProperties& rAxisLab
return bIsHorizontalAxis;
}
-bool VCartesianAxis::isAutoStaggeringOfLabelsAllowed( const AxisLabelProperties& rAxisLabelProperties
- , bool bIsHorizontalAxis, bool bIsVerticalAxis )
+bool VCartesianAxis::isAutoStaggeringOfLabelsAllowed(
+ const AxisLabelProperties& rAxisLabelProperties, bool bIsHorizontalAxis, bool bIsVerticalAxis ) const
{
if( rAxisLabelProperties.eStaggering != STAGGER_AUTO )
return false;
diff --git a/chart2/source/view/axes/VCartesianAxis.hxx b/chart2/source/view/axes/VCartesianAxis.hxx
index e3f26a8f1c29..574bc2f18d7b 100644
--- a/chart2/source/view/axes/VCartesianAxis.hxx
+++ b/chart2/source/view/axes/VCartesianAxis.hxx
@@ -121,9 +121,9 @@ protected: //methods
void doStaggeringOfLabels( const AxisLabelProperties& rAxisLabelProperties
, TickFactory2D* pTickFactory2D );
- bool isAutoStaggeringOfLabelsAllowed( const AxisLabelProperties& rAxisLabelProperties
- , bool bIsHorizontalAxis, bool bIsVerticalAxis );
- bool isBreakOfLabelsAllowed( const AxisLabelProperties& rAxisLabelProperties, bool bIsHorizontalAxis );
+ bool isAutoStaggeringOfLabelsAllowed(
+ const AxisLabelProperties& rAxisLabelProperties, bool bIsHorizontalAxis, bool bIsVerticalAxis ) const;
+ bool isBreakOfLabelsAllowed( const AxisLabelProperties& rAxisLabelProperties, bool bIsHorizontalAxis ) const;
::basegfx::B2DVector getScreenPosition( double fLogicX, double fLogicY, double fLogicZ ) const;
ScreenPosAndLogicPos getScreenPosAndLogicPos( double fLogicX, double fLogicY, double fLogicZ ) const;