summaryrefslogtreecommitdiff
path: root/include/oox/drawingml/shape.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 11:25:07 +0200
committerNoel Grandin <noel@peralex.com>2016-04-13 13:27:52 +0200
commitd60d957a680d9c98823aac05facb652bf619a750 (patch)
treeff5fc8caeee09497eb7943c0ef95337c3bb4e8de /include/oox/drawingml/shape.hxx
parent299d938bf05faf60b848a9d4862e58bb42db3e65 (diff)
loplugin:passstuffbyref in oox
Change-Id: Iec989e9060c77dd5b010224b37633179cee4f7e9
Diffstat (limited to 'include/oox/drawingml/shape.hxx')
-rw-r--r--include/oox/drawingml/shape.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/oox/drawingml/shape.hxx b/include/oox/drawingml/shape.hxx
index c0c25100fd6a..63c0bbb4507c 100644
--- a/include/oox/drawingml/shape.hxx
+++ b/include/oox/drawingml/shape.hxx
@@ -94,7 +94,7 @@ public:
GraphicProperties& getGraphicProperties() { return *mpGraphicPropertiesPtr; }
const GraphicProperties& getGraphicProperties() const { return *mpGraphicPropertiesPtr; }
- CustomShapePropertiesPtr getCustomShapeProperties(){ return mpCustomShapePropertiesPtr; }
+ CustomShapePropertiesPtr& getCustomShapeProperties(){ return mpCustomShapePropertiesPtr; }
Shape3DProperties& get3DProperties() { return *mp3DPropertiesPtr; }
const Shape3DProperties& get3DProperties() const { return *mp3DPropertiesPtr; }
@@ -118,9 +118,9 @@ public:
std::vector< ShapePtr >& getChildren() { return maChildren; }
void setName( const OUString& rName ) { msName = rName; }
- OUString getName( ) { return msName; }
+ const OUString& getName( ) { return msName; }
void setId( const OUString& rId ) { msId = rId; }
- OUString getId() { return msId; }
+ const OUString& getId() { return msId; }
void setHidden( bool bHidden ) { mbHidden = bHidden; }
void setHiddenMasterShape( bool bHiddenMasterShape ) { mbHiddenMasterShape = bHiddenMasterShape; }
void setSubType( sal_Int32 nSubType ) { mnSubType = nSubType; }
@@ -137,9 +137,9 @@ public:
void setTableType();
void setTextBody(const TextBodyPtr & pTextBody);
- TextBodyPtr getTextBody() { return mpTextBody;}
+ const TextBodyPtr& getTextBody() { return mpTextBody;}
void setMasterTextListStyle( const TextListStylePtr& pMasterTextListStyle );
- TextListStylePtr getMasterTextListStyle() const { return mpMasterTextListStyle; }
+ const TextListStylePtr& getMasterTextListStyle() const { return mpMasterTextListStyle; }
ShapeStyleRefMap& getShapeStyleRefs() { return maShapeStyleRefs; }
const ShapeStyleRefMap& getShapeStyleRefs() const { return maShapeStyleRefs; }