summaryrefslogtreecommitdiff
path: root/canvas/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-09 16:52:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-09 20:56:26 +0000
commit924b2923b8b1515a4c37079e72a2a9cc6010a4f4 (patch)
tree111cf075f4085a9d1b4f1a69e7d5cbcaff57133c /canvas/source
parentb926671283837ccf4ee1b283ff4fb286e29cedfd (diff)
V801: Decreased performance
Change-Id: I9e9a00acf9503980f0c6c7cd0a20378e5ca7390d
Diffstat (limited to 'canvas/source')
-rw-r--r--canvas/source/directx/dx_spritehelper.cxx2
-rw-r--r--canvas/source/directx/dx_spritehelper.hxx2
-rw-r--r--canvas/source/tools/pagemanager.hxx8
-rw-r--r--canvas/source/tools/surfaceproxymanager.cxx4
4 files changed, 6 insertions, 10 deletions
diff --git a/canvas/source/directx/dx_spritehelper.cxx b/canvas/source/directx/dx_spritehelper.cxx
index 481e8a4f07b3..6b45d3866cef 100644
--- a/canvas/source/directx/dx_spritehelper.cxx
+++ b/canvas/source/directx/dx_spritehelper.cxx
@@ -54,7 +54,7 @@ namespace dxcanvas
void SpriteHelper::init( const geometry::RealSize2D& rSpriteSize,
const SpriteCanvasRef& rSpriteCanvas,
const IDXRenderModuleSharedPtr& rRenderModule,
- const DXSurfaceBitmapSharedPtr rBitmap,
+ const DXSurfaceBitmapSharedPtr& rBitmap,
bool bShowSpriteBounds )
{
ENSURE_OR_THROW( rSpriteCanvas.get() &&
diff --git a/canvas/source/directx/dx_spritehelper.hxx b/canvas/source/directx/dx_spritehelper.hxx
index ced65e150a68..1cf85d79b8eb 100644
--- a/canvas/source/directx/dx_spritehelper.hxx
+++ b/canvas/source/directx/dx_spritehelper.hxx
@@ -70,7 +70,7 @@ namespace dxcanvas
void init( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
const SpriteCanvasRef& rSpriteCanvas,
const IDXRenderModuleSharedPtr& rRenderModule,
- const DXSurfaceBitmapSharedPtr rBitmap,
+ const DXSurfaceBitmapSharedPtr& rBitmap,
bool bShowSpriteBounds );
void disposing();
diff --git a/canvas/source/tools/pagemanager.hxx b/canvas/source/tools/pagemanager.hxx
index 5e906010e377..06756dd42488 100644
--- a/canvas/source/tools/pagemanager.hxx
+++ b/canvas/source/tools/pagemanager.hxx
@@ -28,16 +28,12 @@
namespace canvas
{
-
-
// PageManager
-
-
class PageManager
{
public:
- PageManager( const canvas::IRenderModuleSharedPtr pRenderModule ) :
- mpRenderModule(pRenderModule)
+ PageManager(const canvas::IRenderModuleSharedPtr& rRenderModule)
+ : mpRenderModule(rRenderModule)
{
}
diff --git a/canvas/source/tools/surfaceproxymanager.cxx b/canvas/source/tools/surfaceproxymanager.cxx
index 72eb5c474306..7c0ac711f868 100644
--- a/canvas/source/tools/surfaceproxymanager.cxx
+++ b/canvas/source/tools/surfaceproxymanager.cxx
@@ -33,8 +33,8 @@ namespace canvas
{
public:
- SurfaceProxyManager( const IRenderModuleSharedPtr pRenderModule ) :
- mpPageManager( new PageManager(pRenderModule) )
+ SurfaceProxyManager( const IRenderModuleSharedPtr& rRenderModule ) :
+ mpPageManager( new PageManager(rRenderModule) )
{
}