summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-20 13:00:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-20 15:24:34 +0200
commit9f958c076a86e80a48fcd7bbca65a834568e94ea (patch)
treecfa0b4f55a6b6717e5a359357fd20779e9d98b00 /oox
parenta40558be785756929f606ab0798a026b985e0ffb (diff)
loplugin:passstuffbyref
Change-Id: I336fd329b577b6fa141265d8bc7ce67784bd7306 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133210 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/chartexport.cxx2
-rw-r--r--oox/source/shape/WpgContext.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index dde654497cf8..1d6dfec23f71 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -503,7 +503,7 @@ bool DataLabelsRange::hasLabel(sal_Int32 nIndex) const
return maLabels.find(nIndex) != maLabels.end();
}
-OUString DataLabelsRange::getRange() const
+const OUString & DataLabelsRange::getRange() const
{
return maRange;
}
diff --git a/oox/source/shape/WpgContext.hxx b/oox/source/shape/WpgContext.hxx
index 414e5f819bfe..643a2a49357b 100644
--- a/oox/source/shape/WpgContext.hxx
+++ b/oox/source/shape/WpgContext.hxx
@@ -29,7 +29,7 @@ public:
const oox::drawingml::ShapePtr& getShape() const { return mpShape; }
const bool& isFullWPGSupport() const { return m_bFullWPGSupport; };
- void setFullWPGSupport(const bool& rbUse) { m_bFullWPGSupport = rbUse; };
+ void setFullWPGSupport(bool bUse) { m_bFullWPGSupport = bUse; };
private:
oox::drawingml::ShapePtr mpShape;