chart2/source/controller/inc/ChartController.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f2627b4d8a2ab2e2d43b141173b1b6b75964e562 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Mon Jul 7 08:53:31 2025 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Mon Jul 7 16:33:42 2025 +0200 Return by const reference The call sites do not need a copy of this non-trivial object Change-Id: I64347bf8e5efecb63e248c806a09c764897c3b94 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187460 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/chart2/source/controller/inc/ChartController.hxx b/chart2/source/controller/inc/ChartController.hxx index b4d39566ec2e..573637f9b3b3 100644 --- a/chart2/source/controller/inc/ChartController.hxx +++ b/chart2/source/controller/inc/ChartController.hxx @@ -341,7 +341,7 @@ public: rtl::Reference<::chart::ChartModel> getChartModel(); rtl::Reference<::chart::Diagram> getFirstDiagram(); - Selection getSelectionMember() { return m_aSelection; } + const Selection& getSelectionMember() const { return m_aSelection; } private: class TheModel : public salhelper::SimpleReferenceObject