diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-17 19:50:41 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-17 19:54:17 +0100 |
commit | c66ec11c41c9519e2f9462ae7fe2b54927f6bc77 (patch) | |
tree | d0d9bf0326c416d5a4f5156cd5ab930ac37fb03b /sdext/source/pdfimport | |
parent | b3652dae4b4d3f02fc0c02d9e139391ef43d7ba5 (diff) |
coverity: pass by const reference is more efficient
Change-Id: I08cebe4aca8eaa5a2be8c319c2de20de10dbd2d3
Diffstat (limited to 'sdext/source/pdfimport')
-rw-r--r-- | sdext/source/pdfimport/tree/pdfiprocessor.cxx | 4 | ||||
-rw-r--r-- | sdext/source/pdfimport/tree/pdfiprocessor.hxx | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.cxx b/sdext/source/pdfimport/tree/pdfiprocessor.cxx index 0e9955f10192..a457d476f99f 100644 --- a/sdext/source/pdfimport/tree/pdfiprocessor.cxx +++ b/sdext/source/pdfimport/tree/pdfiprocessor.cxx @@ -486,9 +486,10 @@ GraphicsContext& PDFIProcessor::getTransformGlyphContext( CharGlyph& rGlyph ) return rGlyph.getGC(); } + void PDFIProcessor::drawCharGlyphs( rtl::OUString& rGlyphs, geometry::RealRectangle2D& rRect, - GraphicsContext aGC, + const GraphicsContext& aGC, ParagraphElement* pPara, FrameElement* pFrame, bool bSpaceFlag ) @@ -523,6 +524,7 @@ void PDFIProcessor::drawCharGlyphs( rtl::OUString& rGlyphs, pFrame->updateGeometryWith( pPara ); } + void PDFIProcessor::drawGlyphs( const rtl::OUString& rGlyphs, const geometry::RealRectangle2D& rRect, const geometry::Matrix2D& rFontMatrix ) diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.hxx b/sdext/source/pdfimport/tree/pdfiprocessor.hxx index 1e4af2513205..e86ccfe2aafe 100644 --- a/sdext/source/pdfimport/tree/pdfiprocessor.hxx +++ b/sdext/source/pdfimport/tree/pdfiprocessor.hxx @@ -116,7 +116,7 @@ namespace pdfi void drawCharGlyphs( rtl::OUString& rGlyphs, ::com::sun::star::geometry::RealRectangle2D& rRect, - GraphicsContext aGC, + const GraphicsContext& aGC, ParagraphElement* pPara, FrameElement* pFrame, bool bSpaceFlag ); |