coverity: pass by const reference is more efficient
Change-Id: I08cebe4aca8eaa5a2be8c319c2de20de10dbd2d3
This commit is contained in:
@@ -486,9 +486,10 @@ GraphicsContext& PDFIProcessor::getTransformGlyphContext( CharGlyph& rGlyph )
|
|||||||
|
|
||||||
return rGlyph.getGC();
|
return rGlyph.getGC();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PDFIProcessor::drawCharGlyphs( rtl::OUString& rGlyphs,
|
void PDFIProcessor::drawCharGlyphs( rtl::OUString& rGlyphs,
|
||||||
geometry::RealRectangle2D& rRect,
|
geometry::RealRectangle2D& rRect,
|
||||||
GraphicsContext aGC,
|
const GraphicsContext& aGC,
|
||||||
ParagraphElement* pPara,
|
ParagraphElement* pPara,
|
||||||
FrameElement* pFrame,
|
FrameElement* pFrame,
|
||||||
bool bSpaceFlag )
|
bool bSpaceFlag )
|
||||||
@@ -523,6 +524,7 @@ void PDFIProcessor::drawCharGlyphs( rtl::OUString& rGlyphs,
|
|||||||
pFrame->updateGeometryWith( pPara );
|
pFrame->updateGeometryWith( pPara );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PDFIProcessor::drawGlyphs( const rtl::OUString& rGlyphs,
|
void PDFIProcessor::drawGlyphs( const rtl::OUString& rGlyphs,
|
||||||
const geometry::RealRectangle2D& rRect,
|
const geometry::RealRectangle2D& rRect,
|
||||||
const geometry::Matrix2D& rFontMatrix )
|
const geometry::Matrix2D& rFontMatrix )
|
||||||
|
@@ -116,7 +116,7 @@ namespace pdfi
|
|||||||
|
|
||||||
void drawCharGlyphs( rtl::OUString& rGlyphs,
|
void drawCharGlyphs( rtl::OUString& rGlyphs,
|
||||||
::com::sun::star::geometry::RealRectangle2D& rRect,
|
::com::sun::star::geometry::RealRectangle2D& rRect,
|
||||||
GraphicsContext aGC,
|
const GraphicsContext& aGC,
|
||||||
ParagraphElement* pPara,
|
ParagraphElement* pPara,
|
||||||
FrameElement* pFrame,
|
FrameElement* pFrame,
|
||||||
bool bSpaceFlag );
|
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.
|
// #i100833# MT 2010/02: Group box and fixed lines can also lable a fixed text.
|
||||||
// See tools/options/print for example.
|
// See tools/options/print for example.
|
||||||
sal_Bool bThisIsAGroupControl = (nMyType == WINDOW_GROUPBOX) || (nMyType == WINDOW_FIXEDLINE);
|
sal_Bool bThisIsAGroupControl = (nMyType == WINDOW_GROUPBOX) || (nMyType == WINDOW_FIXEDLINE);
|
||||||
Window* pSWindow = NULL;
|
|
||||||
// get index, form start and form end
|
// get index, form start and form end
|
||||||
sal_uInt16 nIndex=0, nFormStart=0, nFormEnd=0;
|
sal_uInt16 nIndex=0, nFormStart=0, nFormEnd=0;
|
||||||
pSWindow = ::ImplFindDlgCtrlWindow( pFrameWindow,
|
Window* pSWindow = ::ImplFindDlgCtrlWindow( pFrameWindow,
|
||||||
pLabel,
|
pLabel,
|
||||||
nIndex,
|
nIndex,
|
||||||
nFormStart,
|
nFormStart,
|
||||||
|
Reference in New Issue
Block a user