sc/inc/listenercontext.hxx | 2 +- sc/source/core/data/listenercontext.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 7218011f134250a2ad3e03ff28d5665265c50605 Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Tue Apr 19 11:28:47 2016 +0200 sc: fix loplugin:passstuffbyref Change-Id: I6716817b0ca439b63cc7b49eb7a611c2c15a9b00 diff --git a/sc/inc/listenercontext.hxx b/sc/inc/listenercontext.hxx index d1576cb..1cb41a5 100644 --- a/sc/inc/listenercontext.hxx +++ b/sc/inc/listenercontext.hxx @@ -35,7 +35,7 @@ public: StartListeningContext(ScDocument& rDoc); StartListeningContext(ScDocument& rDoc, const std::shared_ptr<ColumnBlockPositionSet>& pSet); void setColumnSet( std::shared_ptr<const ColumnSet>& pColSet ); - std::shared_ptr<const ColumnSet> getColumnSet() const; + const std::shared_ptr<const ColumnSet>& getColumnSet() const; ScDocument& getDoc() { return mrDoc;} ColumnBlockPosition* getBlockPosition(SCTAB nTab, SCCOL nCol); diff --git a/sc/source/core/data/listenercontext.cxx b/sc/source/core/data/listenercontext.cxx index 44d9df2..4ef6b71 100644 --- a/sc/source/core/data/listenercontext.cxx +++ b/sc/source/core/data/listenercontext.cxx @@ -25,7 +25,7 @@ void StartListeningContext::setColumnSet( std::shared_ptr<const ColumnSet>& rpCo mpColSet = rpColSet; } -std::shared_ptr<const ColumnSet> StartListeningContext::getColumnSet() const +const std::shared_ptr<const ColumnSet>& StartListeningContext::getColumnSet() const { return mpColSet; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits