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 | |
parent | b3652dae4b4d3f02fc0c02d9e139391ef43d7ba5 (diff) |
coverity: pass by const reference is more efficient
Change-Id: I08cebe4aca8eaa5a2be8c319c2de20de10dbd2d3
-rw-r--r-- | sdext/source/pdfimport/tree/pdfiprocessor.cxx | 4 | ||||
-rw-r--r-- | sdext/source/pdfimport/tree/pdfiprocessor.hxx | 2 | ||||
-rw-r--r-- | vcl/source/window/dlgctrl.cxx | 3 |
3 files changed, 5 insertions, 4 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 ); diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx index 15078a0bda17..19d68a08fe06 100644 --- a/vcl/source/window/dlgctrl.cxx +++ b/vcl/source/window/dlgctrl.cxx @@ -1167,10 +1167,9 @@ static Window* ImplGetLabelFor( Window* pFrameWindow, WindowType nMyType, Window // #i100833# MT 2010/02: Group box and fixed lines can also lable a fixed text. // See tools/options/print for example. sal_Bool bThisIsAGroupControl = (nMyType == WINDOW_GROUPBOX) || (nMyType == WINDOW_FIXEDLINE); - Window* pSWindow = NULL; // get index, form start and form end sal_uInt16 nIndex=0, nFormStart=0, nFormEnd=0; - pSWindow = ::ImplFindDlgCtrlWindow( pFrameWindow, + Window* pSWindow = ::ImplFindDlgCtrlWindow( pFrameWindow, pLabel, nIndex, nFormStart, |