diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-13 10:45:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-13 13:27:51 +0200 |
commit | ecebf3bd99b100382f4bc9242ca8e882f83b275a (patch) | |
tree | 07abe24f36323e8905f36a5bb28676ccc5e71a94 /include | |
parent | 9fce680e27e57f0539f55c7ecb5c8e1d96029267 (diff) |
loplugin:passstuffbyref in drawinglayer
Change-Id: I563c18c35291ced91bc29ab9162c5363ee8b19f9
Diffstat (limited to 'include')
-rw-r--r-- | include/drawinglayer/primitive3d/groupprimitive3d.hxx | 2 | ||||
-rw-r--r-- | include/drawinglayer/primitive3d/polygonprimitive3d.hxx | 2 | ||||
-rw-r--r-- | include/drawinglayer/primitive3d/sdrprimitive3d.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/drawinglayer/primitive3d/groupprimitive3d.hxx b/include/drawinglayer/primitive3d/groupprimitive3d.hxx index d2adef9eee4f..3e07c86ed799 100644 --- a/include/drawinglayer/primitive3d/groupprimitive3d.hxx +++ b/include/drawinglayer/primitive3d/groupprimitive3d.hxx @@ -59,7 +59,7 @@ namespace drawinglayer explicit GroupPrimitive3D(const Primitive3DContainer& rChildren); /// data read access - Primitive3DContainer getChildren() const { return maChildren; } + const Primitive3DContainer& getChildren() const { return maChildren; } /// compare operator virtual bool operator==( const BasePrimitive3D& rPrimitive ) const override; diff --git a/include/drawinglayer/primitive3d/polygonprimitive3d.hxx b/include/drawinglayer/primitive3d/polygonprimitive3d.hxx index 34721a351ee8..9f3f363b9495 100644 --- a/include/drawinglayer/primitive3d/polygonprimitive3d.hxx +++ b/include/drawinglayer/primitive3d/polygonprimitive3d.hxx @@ -107,7 +107,7 @@ namespace drawinglayer const attribute::StrokeAttribute& rStrokeAttribute); /// data read access - basegfx::B3DPolygon getB3DPolygon() const { return maPolygon; } + const basegfx::B3DPolygon& getB3DPolygon() const { return maPolygon; } const attribute::LineAttribute& getLineAttribute() const { return maLineAttribute; } const attribute::StrokeAttribute& getStrokeAttribute() const { return maStrokeAttribute; } diff --git a/include/drawinglayer/primitive3d/sdrprimitive3d.hxx b/include/drawinglayer/primitive3d/sdrprimitive3d.hxx index 1dded61f002b..bd8991f78128 100644 --- a/include/drawinglayer/primitive3d/sdrprimitive3d.hxx +++ b/include/drawinglayer/primitive3d/sdrprimitive3d.hxx @@ -72,7 +72,7 @@ namespace drawinglayer const basegfx::B3DHomMatrix& getTransform() const { return maTransform; } const basegfx::B2DVector& getTextureSize() const { return maTextureSize; } const attribute::SdrLineFillShadowAttribute3D& getSdrLFSAttribute() const { return maSdrLFSAttribute; } - const attribute::Sdr3DObjectAttribute getSdr3DObjectAttribute() const { return maSdr3DObjectAttribute; } + const attribute::Sdr3DObjectAttribute& getSdr3DObjectAttribute() const { return maSdr3DObjectAttribute; } /// compare operator virtual bool operator==(const BasePrimitive3D& rPrimitive) const override; |