diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-14 13:41:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-15 08:27:25 +0200 |
commit | b47cb646ff2a62fcd3fac0e453a7261bbaefbcb7 (patch) | |
tree | 49a2dc78e998baa77212776d7d94fb8d72dc0f00 /reportdesign/source/ui | |
parent | 89e0663c55f7f1763536a345d63111115c71ef26 (diff) |
loplugin:constantparam
Change-Id: I270e068b3c83e966e741b0a072fecce9d92d53f5
Diffstat (limited to 'reportdesign/source/ui')
-rw-r--r-- | reportdesign/source/ui/inc/ReportWindow.hxx | 4 | ||||
-rw-r--r-- | reportdesign/source/ui/report/ReportWindow.cxx | 4 | ||||
-rw-r--r-- | reportdesign/source/ui/report/ScrollHelper.cxx | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/reportdesign/source/ui/inc/ReportWindow.hxx b/reportdesign/source/ui/inc/ReportWindow.hxx index fe478dfefe4e..36a59ac178dd 100644 --- a/reportdesign/source/ui/inc/ReportWindow.hxx +++ b/reportdesign/source/ui/inc/ReportWindow.hxx @@ -143,11 +143,11 @@ namespace rptui sal_Int32 GetTotalWidth() const; /** calculate the max width of the markers + * The end marker will not be used for calculation. * - * @param _bWithEnd if <TRUE/> the end marker will be used for calculation as well otherwise not. * \return the max width */ - sal_Int32 getMaxMarkerWidth(bool _bWithEnd) const; + sal_Int32 getMaxMarkerWidth() const; void ScrollChildren(const Point& _aThumbPos); diff --git a/reportdesign/source/ui/report/ReportWindow.cxx b/reportdesign/source/ui/report/ReportWindow.cxx index aaa87d0591d7..8e8b725c9463 100644 --- a/reportdesign/source/ui/report/ReportWindow.cxx +++ b/reportdesign/source/ui/report/ReportWindow.cxx @@ -142,12 +142,10 @@ void OReportWindow::showRuler(bool _bShow) m_aViewsWindow->showRuler(_bShow); } -sal_Int32 OReportWindow::getMaxMarkerWidth(bool _bWithEnd) const +sal_Int32 OReportWindow::getMaxMarkerWidth() const { Fraction aStartWidth(long(REPORT_STARTMARKER_WIDTH)); aStartWidth *= m_aViewsWindow->GetMapMode().GetScaleX(); - if ( _bWithEnd ) - aStartWidth += Fraction(long(REPORT_ENDMARKER_WIDTH)); return sal_Int32((long)aStartWidth); } diff --git a/reportdesign/source/ui/report/ScrollHelper.cxx b/reportdesign/source/ui/report/ScrollHelper.cxx index d20907f01326..dc9bc346c58a 100644 --- a/reportdesign/source/ui/report/ScrollHelper.cxx +++ b/reportdesign/source/ui/report/ScrollHelper.cxx @@ -272,7 +272,7 @@ void OScrollWindowHelper::unmarkAllObjects(OSectionView* _pSectionView) sal_Int32 OScrollWindowHelper::getMaxMarkerWidth() const { - return m_aReportWindow->getMaxMarkerWidth(false/*_bWithEnd*/); + return m_aReportWindow->getMaxMarkerWidth(); } void OScrollWindowHelper::showRuler(bool _bShow) |