summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-18 09:22:27 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-27 06:48:25 +0000
commit508c95f1b655d9cfa6be37a5a9de9aff6fd383bf (patch)
treed1c8626818cbf26a699875ae2d82f751a1657e92 /slideshow
parent9f4af777a832d8a0b9a21d793d421fa6228131e0 (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 'slideshow')
-rw-r--r--slideshow/source/engine/shapes/drawshape.cxx2
-rw-r--r--slideshow/source/engine/shapes/drawshape.hxx2
-rw-r--r--slideshow/source/engine/shapesubset.cxx2
-rw-r--r--slideshow/source/inc/shapesubset.hxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/slideshow/source/engine/shapes/drawshape.cxx b/slideshow/source/engine/shapes/drawshape.cxx
index ad9212e1d3e9..877049b0b5ae 100644
--- a/slideshow/source/engine/shapes/drawshape.cxx
+++ b/slideshow/source/engine/shapes/drawshape.cxx
@@ -77,7 +77,7 @@ namespace slideshow
// Private methods
- GDIMetaFileSharedPtr DrawShape::forceScrollTextMetaFile()
+ GDIMetaFileSharedPtr const & DrawShape::forceScrollTextMetaFile()
{
if ((mnCurrMtfLoadFlags & MTF_LOAD_SCROLL_TEXT_MTF) != MTF_LOAD_SCROLL_TEXT_MTF)
{
diff --git a/slideshow/source/engine/shapes/drawshape.hxx b/slideshow/source/engine/shapes/drawshape.hxx
index a0d98b1c9001..328d0c3bd3a4 100644
--- a/slideshow/source/engine/shapes/drawshape.hxx
+++ b/slideshow/source/engine/shapes/drawshape.hxx
@@ -199,7 +199,7 @@ namespace slideshow
crafted metafile, usable to display drawing layer text
animations.
*/
- GDIMetaFileSharedPtr forceScrollTextMetaFile();
+ GDIMetaFileSharedPtr const & forceScrollTextMetaFile();
private:
/** Create a shape for the given XShape
diff --git a/slideshow/source/engine/shapesubset.cxx b/slideshow/source/engine/shapesubset.cxx
index 5a20d3e9d194..23fd8099e829 100644
--- a/slideshow/source/engine/shapesubset.cxx
+++ b/slideshow/source/engine/shapesubset.cxx
@@ -88,7 +88,7 @@ namespace slideshow
}
}
- AttributableShapeSharedPtr ShapeSubset::getSubsetShape() const
+ AttributableShapeSharedPtr const & ShapeSubset::getSubsetShape() const
{
return mpSubsetShape ? mpSubsetShape : mpOriginalShape;
}
diff --git a/slideshow/source/inc/shapesubset.hxx b/slideshow/source/inc/shapesubset.hxx
index 68514759de2a..7f0a8a747148 100644
--- a/slideshow/source/inc/shapesubset.hxx
+++ b/slideshow/source/inc/shapesubset.hxx
@@ -96,7 +96,7 @@ namespace slideshow
If the subset is currently revoked, this method
returns the original shape.
*/
- AttributableShapeSharedPtr getSubsetShape() const;
+ AttributableShapeSharedPtr const & getSubsetShape() const;
/** Enable the subset shape.