diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-28 10:01:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-28 13:47:28 +0200 |
commit | e75a545f2869a4406bb434c356d481745f000271 (patch) | |
tree | 5f7b64b1c21096a98c18c47e4df855a58572be8a /sdext | |
parent | c1e31ee0433232104c73cfa56e24e056833213dc (diff) |
loplugin:constmethod in sdext..starmath
Change-Id: Ib1b60382c9ec62f35f0f232c3f2c2d5664ea669e
Reviewed-on: https://gerrit.libreoffice.org/79779
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/minimizer/optimizerdialog.hxx | 2 | ||||
-rw-r--r-- | sdext/source/pdfimport/inc/pdfiprocessor.hxx | 4 | ||||
-rw-r--r-- | sdext/source/pdfimport/tree/pdfiprocessor.cxx | 2 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterScrollBar.hxx | 2 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterTextView.cxx | 4 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterTextView.hxx | 4 |
6 files changed, 9 insertions, 9 deletions
diff --git a/sdext/source/minimizer/optimizerdialog.hxx b/sdext/source/minimizer/optimizerdialog.hxx index 9d421488046a..c40a7b9b99c0 100644 --- a/sdext/source/minimizer/optimizerdialog.hxx +++ b/sdext/source/minimizer/optimizerdialog.hxx @@ -122,7 +122,7 @@ public: OUString GetSelectedString( OUString const & token ); css::uno::Reference< css::frame::XDispatch >& GetStatusDispatcher() { return mxStatusDispatcher; }; css::uno::Reference< css::frame::XFrame>& GetFrame() { return mxFrame; }; - const css::uno::Reference< css::uno::XComponentContext >& GetComponentContext() { return UnoDialog::mxContext; }; + const css::uno::Reference< css::uno::XComponentContext >& GetComponentContext() const { return UnoDialog::mxContext; }; }; diff --git a/sdext/source/pdfimport/inc/pdfiprocessor.hxx b/sdext/source/pdfimport/inc/pdfiprocessor.hxx index 196a59ba3a8b..a4c16407a39d 100644 --- a/sdext/source/pdfimport/inc/pdfiprocessor.hxx +++ b/sdext/source/pdfimport/inc/pdfiprocessor.hxx @@ -205,8 +205,8 @@ namespace pdfi m_Width(width), m_PrevSpaceWidth(prevSpaceWidth), m_rGlyphs(rGlyphs) {}; OUString& getGlyph(){ return m_rGlyphs; } - double getWidth(){ return m_Width; } - double getPrevSpaceWidth(){ return m_PrevSpaceWidth; } + double getWidth() const { return m_Width; } + double getPrevSpaceWidth() const { return m_PrevSpaceWidth; } GraphicsContext& getGC(){ return m_rCurrentContext; } Element* getCurElement(){ return m_pCurElement; } diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.cxx b/sdext/source/pdfimport/tree/pdfiprocessor.cxx index 509e4a72d9e8..15b77b8627b8 100644 --- a/sdext/source/pdfimport/tree/pdfiprocessor.cxx +++ b/sdext/source/pdfimport/tree/pdfiprocessor.cxx @@ -217,7 +217,7 @@ void PDFIProcessor::processGlyphLine() if (spaceDetectBoundary == 0.0) { double avgGlyphWidth = 0.0; - for (CharGlyph & i : m_GlyphsList) + for (const CharGlyph & i : m_GlyphsList) avgGlyphWidth += i.getWidth(); avgGlyphWidth /= m_GlyphsList.size(); spaceDetectBoundary = avgGlyphWidth * 0.2; diff --git a/sdext/source/presenter/PresenterScrollBar.hxx b/sdext/source/presenter/PresenterScrollBar.hxx index a181753ee2f7..cf46420b186c 100644 --- a/sdext/source/presenter/PresenterScrollBar.hxx +++ b/sdext/source/presenter/PresenterScrollBar.hxx @@ -58,7 +58,7 @@ public: virtual void SAL_CALL disposing() override; css::uno::Reference<css::uno::XComponentContext> const& - GetComponentContext() { return mxComponentContext; } + GetComponentContext() const { return mxComponentContext; } void SetVisible (const bool bIsVisible); diff --git a/sdext/source/presenter/PresenterTextView.cxx b/sdext/source/presenter/PresenterTextView.cxx index 10eec2e4b630..166d56cf5123 100644 --- a/sdext/source/presenter/PresenterTextView.cxx +++ b/sdext/source/presenter/PresenterTextView.cxx @@ -657,7 +657,7 @@ awt::Point PresenterTextParagraph::GetRelativeLocation() const sal_Int32(mnYOrigin + mnVerticalOffset)); } -awt::Size PresenterTextParagraph::GetSize() +awt::Size PresenterTextParagraph::GetSize() const { return awt::Size( sal_Int32(mnWidth), @@ -725,7 +725,7 @@ void PresenterTextParagraph::AddLine ( rCurrentLine.startPos = rCurrentLine.endPos; } -double PresenterTextParagraph::GetTotalTextHeight() +double PresenterTextParagraph::GetTotalTextHeight() const { return maLines.size() * mnLineHeight; } diff --git a/sdext/source/presenter/PresenterTextView.hxx b/sdext/source/presenter/PresenterTextView.hxx index 86bc04652f91..edd818cc385c 100644 --- a/sdext/source/presenter/PresenterTextView.hxx +++ b/sdext/source/presenter/PresenterTextView.hxx @@ -106,7 +106,7 @@ public: const double nClipTop, const double nClipBottom); - double GetTotalTextHeight(); + double GetTotalTextHeight() const; void SetCharacterOffset (const sal_Int32 nCharacterOffset); sal_Int32 GetCharacterCount() const; @@ -138,7 +138,7 @@ public: void SetCaretPosition (const sal_Int32 nPosition) const; void SetOrigin (const double nXOrigin, const double nYOrigin); css::awt::Point GetRelativeLocation() const; - css::awt::Size GetSize(); + css::awt::Size GetSize() const; private: OUString msParagraphText; |