diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-24 08:32:42 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-24 11:41:01 +0200 |
commit | c09d0aa46ceaeb96869eae1a23a86040189472f4 (patch) | |
tree | 747da0f79cad58b31ddc04d57259e972f04dd22a /sdext/source | |
parent | 0f543e38722f25a2969d500513167a3305097ed8 (diff) |
loplugin:constantparam in sd
Change-Id: I1a7f4cab28a70c45e5232e1c44f6ca6f7b014bff
Diffstat (limited to 'sdext/source')
-rw-r--r-- | sdext/source/pdfimport/inc/contentsink.hxx | 5 | ||||
-rw-r--r-- | sdext/source/pdfimport/wrapper/wrapper.cxx | 1 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterScrollBar.cxx | 13 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterScrollBar.hxx | 4 |
4 files changed, 4 insertions, 19 deletions
diff --git a/sdext/source/pdfimport/inc/contentsink.hxx b/sdext/source/pdfimport/inc/contentsink.hxx index e3bcb216d939..0b25fcc74268 100644 --- a/sdext/source/pdfimport/inc/contentsink.hxx +++ b/sdext/source/pdfimport/inc/contentsink.hxx @@ -51,14 +51,13 @@ namespace pdfi bool isBold_, bool isItalic_, bool isUnderline_, - bool isOutline_, double size_, double ascent_) : familyName(familyName_), isBold(isBold_), isItalic(isItalic_), isUnderline(isUnderline_), - isOutline(isOutline_), + isOutline(false), size(size_), ascent(ascent_) {} @@ -73,7 +72,7 @@ namespace pdfi ascent(1.0) {} - OUString familyName; + OUString familyName; bool isBold; bool isItalic; bool isUnderline; diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx index e536a8017c1f..06a97635bee3 100644 --- a/sdext/source/pdfimport/wrapper/wrapper.cxx +++ b/sdext/source/pdfimport/wrapper/wrapper.cxx @@ -610,7 +610,6 @@ void Parser::readFont() nIsBold != 0, nIsItalic != 0, nIsUnderline != 0, - false, nSize, 1.0); diff --git a/sdext/source/presenter/PresenterScrollBar.cxx b/sdext/source/presenter/PresenterScrollBar.cxx index 758a3d68b9b6..d7312955a28a 100644 --- a/sdext/source/presenter/PresenterScrollBar.cxx +++ b/sdext/source/presenter/PresenterScrollBar.cxx @@ -186,16 +186,7 @@ void PresenterScrollBar::SetThumbPosition ( double nPosition, const bool bAsynchronousUpdate) { - SetThumbPosition(nPosition, bAsynchronousUpdate, true); -} - -void PresenterScrollBar::SetThumbPosition ( - double nPosition, - const bool bAsynchronousUpdate, - const bool bValidate) -{ - if (bValidate) - nPosition = ValidateThumbPosition(nPosition); + nPosition = ValidateThumbPosition(nPosition); if (nPosition != mnThumbPosition && ! mbIsNotificationActive) { @@ -442,7 +433,7 @@ void SAL_CALL PresenterScrollBar::mouseDragged (const css::awt::MouseEvent& rEve UpdateDragAnchor(nDragDistance); if (nDragDistance != 0) { - SetThumbPosition(mnThumbPosition + nDragDistance, false, true); + SetThumbPosition(mnThumbPosition + nDragDistance, false); } } diff --git a/sdext/source/presenter/PresenterScrollBar.hxx b/sdext/source/presenter/PresenterScrollBar.hxx index aaf5f160bd60..b44de88bd47d 100644 --- a/sdext/source/presenter/PresenterScrollBar.hxx +++ b/sdext/source/presenter/PresenterScrollBar.hxx @@ -225,10 +225,6 @@ protected: const Area eArea) const; bool IsDisabled (const Area eArea) const; double ValidateThumbPosition (double nPosition); - void SetThumbPosition ( - double nPosition, - const bool bAsynchronousRepaint, - const bool bValidate); private: class MousePressRepeater; |