diff options
-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; } |