summaryrefslogtreecommitdiff
path: root/sc/inc/listenercontext.hxx
diff options
context:
space:
mode:
authorSteven Guo <steventimothyguo@gmail.com>2016-03-08 22:45:17 -0800
committerStephan Bergmann <sbergman@redhat.com>2016-04-05 06:57:31 +0000
commitbe3c2ff9233e8d4c5afe9c696cb5a60b24b25efc (patch)
tree89d3be1ac1f9cf210d78aacdde94fa45f10ec692 /sc/inc/listenercontext.hxx
parentaf23aa9a763bd8ebe160b95a48e1b0e650ec9ed3 (diff)
tdf#94306 Replace boost::noncopyable with plain C++11 deleted copy ctors
Replaced boost::noncopyable with play C++11 deleted copy ctors in sc/inc/* files. Change-Id: I2e6310f2f2bac673dd3b5d14e80ce80a98795672 Reviewed-on: https://gerrit.libreoffice.org/23059 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc/inc/listenercontext.hxx')
-rw-r--r--sc/inc/listenercontext.hxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/sc/inc/listenercontext.hxx b/sc/inc/listenercontext.hxx
index 1ba1166bc5c5..f9b95884d41d 100644
--- a/sc/inc/listenercontext.hxx
+++ b/sc/inc/listenercontext.hxx
@@ -13,7 +13,6 @@
#include "address.hxx"
#include "columnspanset.hxx"
-#include <boost/noncopyable.hpp>
#include <memory>
class ScDocument;
@@ -24,11 +23,13 @@ namespace sc {
struct ColumnBlockPosition;
class ColumnBlockPositionSet;
-class StartListeningContext : private boost::noncopyable
+class StartListeningContext
{
ScDocument& mrDoc;
std::shared_ptr<ColumnBlockPositionSet> mpSet;
public:
+ StartListeningContext(const StartListeningContext&) = delete;
+ const StartListeningContext& operator=(const StartListeningContext&) = delete;
StartListeningContext(ScDocument& rDoc);
StartListeningContext(ScDocument& rDoc, const std::shared_ptr<ColumnBlockPositionSet>& pSet);
ScDocument& getDoc() { return mrDoc;}
@@ -36,7 +37,7 @@ public:
ColumnBlockPosition* getBlockPosition(SCTAB nTab, SCCOL nCol);
};
-class EndListeningContext : private boost::noncopyable
+class EndListeningContext
{
ScDocument& mrDoc;
ColumnSpanSet maSet;
@@ -45,6 +46,8 @@ class EndListeningContext : private boost::noncopyable
ScAddress maPosDelta; // Add this to get the old position prior to the move.
public:
+ EndListeningContext(const EndListeningContext&) = delete;
+ const EndListeningContext& operator=(const EndListeningContext&) = delete;
EndListeningContext(ScDocument& rDoc, ScTokenArray* pOldCode = nullptr);
EndListeningContext(ScDocument& rDoc, const std::shared_ptr<ColumnBlockPositionSet>& pSet, ScTokenArray* pOldCode = nullptr);
@@ -60,12 +63,14 @@ public:
void purgeEmptyBroadcasters();
};
-class PurgeListenerAction : public ColumnSpanSet::Action, private boost::noncopyable
+class PurgeListenerAction : public ColumnSpanSet::Action
{
ScDocument& mrDoc;
std::unique_ptr<ColumnBlockPosition> mpBlockPos;
public:
+ PurgeListenerAction(const PurgeListenerAction&) = delete;
+ const PurgeListenerAction& operator=(const PurgeListenerAction&) = delete;
PurgeListenerAction( ScDocument& rDoc );
virtual void startColumn( SCTAB nTab, SCCOL nCol ) override;