coverity: pass by const reference is more efficient
Change-Id: I08cebe4aca8eaa5a2be8c319c2de20de10dbd2d3
This commit is contained in:
parent
b3652dae4b
commit
c66ec11c41
@ -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 )
|
||||
|
@ -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 );
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user