From 86a32589e90ee983159fb5b2c6a594428ab7d422 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 6 Mar 2014 15:29:08 +0200 Subject: Find places where OUString and OString are passed by value. It's not very efficient, because we generally end up copying it twice - once into the parameter and again into the destination OUString. So I create a clang plugin that finds such places and generates a warning so that we can convert them to pass-by-reference. Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361 --- cppcanvas/source/inc/implrenderer.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cppcanvas/source/inc') diff --git a/cppcanvas/source/inc/implrenderer.hxx b/cppcanvas/source/inc/implrenderer.hxx index 4f043b9b33a9..55fe6f132c1b 100644 --- a/cppcanvas/source/inc/implrenderer.hxx +++ b/cppcanvas/source/inc/implrenderer.hxx @@ -266,7 +266,7 @@ static float GetSwapFloat( SvStream& rSt ) bool bSubsettableActions ); void createTextAction( const ::Point& rStartPoint, - const OUString rString, + const OUString& rString, int nIndex, int nLength, const sal_Int32* pCharWidths, -- cgit v1.2.3