diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-18 09:22:27 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-27 06:48:25 +0000 |
commit | 508c95f1b655d9cfa6be37a5a9de9aff6fd383bf (patch) | |
tree | d1c8626818cbf26a699875ae2d82f751a1657e92 /canvas | |
parent | 9f4af777a832d8a0b9a21d793d421fa6228131e0 (diff) |
improve passstuffbyref return analysis
Change-Id: I4258bcc97273d8bb7a8c4879fac02a427f76e18c
Reviewed-on: https://gerrit.libreoffice.org/27317
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/cairo/cairo_spritecanvashelper.cxx | 4 | ||||
-rw-r--r-- | canvas/source/cairo/cairo_spritecanvashelper.hxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/canvas/source/cairo/cairo_spritecanvashelper.cxx b/canvas/source/cairo/cairo_spritecanvashelper.cxx index 03fa5597e319..8ffa34e4da9c 100644 --- a/canvas/source/cairo/cairo_spritecanvashelper.cxx +++ b/canvas/source/cairo/cairo_spritecanvashelper.cxx @@ -481,7 +481,7 @@ namespace cairocanvas cairo_paint( pWindowCairo.get() ); } - ::cairo::SurfaceSharedPtr SpriteCanvasHelper::getCompositingSurface( const ::basegfx::B2ISize& rNeededSize ) + ::cairo::SurfaceSharedPtr const & SpriteCanvasHelper::getCompositingSurface( const ::basegfx::B2ISize& rNeededSize ) { if( rNeededSize.getX() > maCompositingSurfaceSize.getX() || rNeededSize.getY() > maCompositingSurfaceSize.getY() ) @@ -501,7 +501,7 @@ namespace cairocanvas return mpCompositingSurface; } - ::cairo::SurfaceSharedPtr SpriteCanvasHelper::getTemporarySurface() + ::cairo::SurfaceSharedPtr const & SpriteCanvasHelper::getTemporarySurface() { if ( !mpTemporarySurface ) mpTemporarySurface = createSurface( maCompositingSurfaceSize ); diff --git a/canvas/source/cairo/cairo_spritecanvashelper.hxx b/canvas/source/cairo/cairo_spritecanvashelper.hxx index 2fc3222eaadd..35cf73629653 100644 --- a/canvas/source/cairo/cairo_spritecanvashelper.hxx +++ b/canvas/source/cairo/cairo_spritecanvashelper.hxx @@ -117,8 +117,8 @@ namespace cairocanvas const ::std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites ); private: - ::cairo::SurfaceSharedPtr getCompositingSurface( const ::basegfx::B2ISize& rNeededSize ); - ::cairo::SurfaceSharedPtr getTemporarySurface(); + ::cairo::SurfaceSharedPtr const & getCompositingSurface( const ::basegfx::B2ISize& rNeededSize ); + ::cairo::SurfaceSharedPtr const & getTemporarySurface(); ::cairo::SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rNeededSize ) const; /// Set from the SpriteCanvas: instance coordinating sprite redraw |