sc/inc/document.hxx | 2 +- sc/inc/listenercontext.hxx | 2 +- sc/source/core/data/document10.cxx | 4 ++-- sc/source/core/data/listenercontext.cxx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
New commits: commit 2efd20c7a18fe5e864509c75443883ccf35bc3a4 Author: Eike Rathke <er...@redhat.com> Date: Tue Apr 19 12:44:05 2016 +0200 const as const can, tdf#99322 follow-up Change-Id: I8c9714e6c6b15fbb1068b79d2efae48927a1fa77 diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 203996f..c0eeb18 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1981,7 +1981,7 @@ public: void SetHardRecalcState( HardRecalcState eVal ) { eHardRecalcState = eVal; } void StartAllListeners(); void StartNeededListeners(); - void StartNeededListeners( std::shared_ptr<const sc::ColumnSet>& rpColSet ); + void StartNeededListeners( const std::shared_ptr<const sc::ColumnSet>& rpColSet ); void StartAllListeners( const ScRange& rRange ); void SetForcedFormulas( bool bVal ) { bHasForcedFormulas = bVal; } diff --git a/sc/inc/listenercontext.hxx b/sc/inc/listenercontext.hxx index 1cb41a5..ad41349 100644 --- a/sc/inc/listenercontext.hxx +++ b/sc/inc/listenercontext.hxx @@ -34,7 +34,7 @@ public: const StartListeningContext& operator=(const StartListeningContext&) = delete; StartListeningContext(ScDocument& rDoc); StartListeningContext(ScDocument& rDoc, const std::shared_ptr<ColumnBlockPositionSet>& pSet); - void setColumnSet( std::shared_ptr<const ColumnSet>& pColSet ); + void setColumnSet( const std::shared_ptr<const ColumnSet>& pColSet ); const std::shared_ptr<const ColumnSet>& getColumnSet() const; ScDocument& getDoc() { return mrDoc;} diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx index 6bd1775..5e8678d 100644 --- a/sc/source/core/data/document10.cxx +++ b/sc/source/core/data/document10.cxx @@ -396,7 +396,7 @@ class StartNeededListenersHandler : public std::unary_function<ScTable*, void> std::shared_ptr<sc::StartListeningContext> mpCxt; public: explicit StartNeededListenersHandler( ScDocument& rDoc ) : mpCxt(new sc::StartListeningContext(rDoc)) {} - explicit StartNeededListenersHandler( ScDocument& rDoc, std::shared_ptr<const sc::ColumnSet>& rpColSet ) : + explicit StartNeededListenersHandler( ScDocument& rDoc, const std::shared_ptr<const sc::ColumnSet>& rpColSet ) : mpCxt(new sc::StartListeningContext(rDoc)) { mpCxt->setColumnSet( rpColSet); @@ -416,7 +416,7 @@ void ScDocument::StartNeededListeners() std::for_each(maTabs.begin(), maTabs.end(), StartNeededListenersHandler(*this)); } -void ScDocument::StartNeededListeners( std::shared_ptr<const sc::ColumnSet>& rpColSet ) +void ScDocument::StartNeededListeners( const std::shared_ptr<const sc::ColumnSet>& rpColSet ) { std::for_each(maTabs.begin(), maTabs.end(), StartNeededListenersHandler(*this, rpColSet)); } diff --git a/sc/source/core/data/listenercontext.cxx b/sc/source/core/data/listenercontext.cxx index 4ef6b71..ad5e314 100644 --- a/sc/source/core/data/listenercontext.cxx +++ b/sc/source/core/data/listenercontext.cxx @@ -20,7 +20,7 @@ StartListeningContext::StartListeningContext( ScDocument& rDoc, const std::shared_ptr<ColumnBlockPositionSet>& pSet) : mrDoc(rDoc), mpSet(pSet) {} -void StartListeningContext::setColumnSet( std::shared_ptr<const ColumnSet>& rpColSet ) +void StartListeningContext::setColumnSet( const std::shared_ptr<const ColumnSet>& rpColSet ) { mpColSet = rpColSet; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits