diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-04-19 11:28:47 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-04-19 11:29:02 +0200 |
commit | 7218011f134250a2ad3e03ff28d5665265c50605 (patch) | |
tree | d8acf04dfcd844e552f640df28aec648c030a40f | |
parent | 1abcf1bcbfa90ee1714b4d37fb38b639dabbcdfe (diff) |
sc: fix loplugin:passstuffbyref
Change-Id: I6716817b0ca439b63cc7b49eb7a611c2c15a9b00
-rw-r--r-- | sc/inc/listenercontext.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/listenercontext.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/listenercontext.hxx b/sc/inc/listenercontext.hxx index d1576cb92149..1cb41a5c6f29 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 44d9df23f3a9..4ef6b71e3a6d 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; } |