diff options
author | Eike Rathke <erack@redhat.com> | 2016-04-19 12:44:05 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-04-19 12:45:35 +0200 |
commit | 2efd20c7a18fe5e864509c75443883ccf35bc3a4 (patch) | |
tree | 01b3db46ecd24f9fd9cfd24be6ec6a5207085526 /sc | |
parent | 7218011f134250a2ad3e03ff28d5665265c50605 (diff) |
const as const can, tdf#99322 follow-up
Change-Id: I8c9714e6c6b15fbb1068b79d2efae48927a1fa77
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/document.hxx | 2 | ||||
-rw-r--r-- | sc/inc/listenercontext.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/document10.cxx | 4 | ||||
-rw-r--r-- | sc/source/core/data/listenercontext.cxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 203996fabfd7..c0eeb188c76e 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 1cb41a5c6f29..ad413490b65d 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 6bd177582790..5e8678dfe3fb 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 4ef6b71e3a6d..ad5e3141028d 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; } |