[Libreoffice-commits] .: sdext/source
Caolán McNamara
caolan at kemper.freedesktop.org
Thu Nov 25 01:53:41 PST 2010
sdext/source/pdfimport/tree/pdfiprocessor.hxx | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
New commits:
commit 3c35d3e5a870766d14b8185202575cce3cc81d81
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Nov 25 09:53:35 2010 +0000
cppcheck: methods can be const
diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.hxx b/sdext/source/pdfimport/tree/pdfiprocessor.hxx
index 55a5f66..87d1618 100644
--- a/sdext/source/pdfimport/tree/pdfiprocessor.hxx
+++ b/sdext/source/pdfimport/tree/pdfiprocessor.hxx
@@ -261,15 +261,17 @@ namespace pdfi
void setGraphicsContext (GraphicsContext& rCurrentContext ){ m_rCurrentContext= rCurrentContext; }
void setCurElement( Element* pCurElement ){ m_pCurElement= pCurElement; }
- double getYPrevGlyphPosition(){ return m_fYPrevGlyphPosition; }
- double getXPrevGlyphPosition(){ return m_fXPrevGlyphPosition; }
- double getPrevGlyphHeight(){ return m_fPrevGlyphHeight; }
- double getPrevGlyphWidth (){ return m_fPrevGlyphWidth; }
- double getPrevGlyphsSpace() { if( (m_rRect.X1-m_fXPrevGlyphPosition)<0 )
- return 0;
- else
- return m_rRect.X1-m_fXPrevGlyphPosition;
- }
+ double getYPrevGlyphPosition() const { return m_fYPrevGlyphPosition; }
+ double getXPrevGlyphPosition() const { return m_fXPrevGlyphPosition; }
+ double getPrevGlyphHeight() const { return m_fPrevGlyphHeight; }
+ double getPrevGlyphWidth () const { return m_fPrevGlyphWidth; }
+ double getPrevGlyphsSpace() const
+ {
+ if( (m_rRect.X1-m_fXPrevGlyphPosition)<0 )
+ return 0;
+ else
+ return m_rRect.X1-m_fXPrevGlyphPosition;
+ }
void setYPrevGlyphPosition( double fYPrevTextPosition ){ m_fYPrevGlyphPosition= fYPrevTextPosition; }
void setXPrevGlyphPosition( double fXPrevTextPosition ){ m_fXPrevGlyphPosition= fXPrevTextPosition; }
More information about the Libreoffice-commits
mailing list