diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-09 15:22:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-10 08:07:03 +0200 |
commit | 4c909d1466bf940f653984b61772cf19c320439d (patch) | |
tree | c29129af77615725b3cee5cf5e18796821b426e6 /oox/source/drawingml/diagram | |
parent | 91d77d65190e7cf11dd7cd0b29d5de6b66061faf (diff) |
loplugin:passstuffbyref
Change-Id: Ib2b2650da7abc9260897f9b5aad619a0ea6ae941
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138052
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/drawingml/diagram')
-rw-r--r-- | oox/source/drawingml/diagram/diagramhelper.cxx | 2 | ||||
-rw-r--r-- | oox/source/drawingml/diagram/diagramhelper.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/diagram/diagramhelper.cxx b/oox/source/drawingml/diagram/diagramhelper.cxx index ebd6f3ebbf4a..e0e7202d3966 100644 --- a/oox/source/drawingml/diagram/diagramhelper.cxx +++ b/oox/source/drawingml/diagram/diagramhelper.cxx @@ -236,7 +236,7 @@ void AdvancedDiagramHelper::doAnchor(SdrObjGroup& rTarget, ::oox::drawingml::Sha anchorToSdrObjGroup(rTarget); } -std::shared_ptr< ::oox::drawingml::Theme > AdvancedDiagramHelper::getOrCreateThemePtr( +const std::shared_ptr< ::oox::drawingml::Theme >& AdvancedDiagramHelper::getOrCreateThemePtr( rtl::Reference< oox::shape::ShapeFilterBase >& rxFilter) const { // (Re-)Use already existing Theme if existing/imported if possible. diff --git a/oox/source/drawingml/diagram/diagramhelper.hxx b/oox/source/drawingml/diagram/diagramhelper.hxx index 6059c2261d50..626d40382d7e 100644 --- a/oox/source/drawingml/diagram/diagramhelper.hxx +++ b/oox/source/drawingml/diagram/diagramhelper.hxx @@ -83,7 +83,7 @@ public: virtual void applyDiagramDataState(const std::shared_ptr< svx::diagram::DiagramDataState >& rState) override; void doAnchor(SdrObjGroup& rTarget, ::oox::drawingml::Shape& rRootShape); - std::shared_ptr< ::oox::drawingml::Theme > getOrCreateThemePtr( + const std::shared_ptr< ::oox::drawingml::Theme >& getOrCreateThemePtr( rtl::Reference< oox::shape::ShapeFilterBase>& rxFilter ) const; }; |