diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-03-24 17:55:23 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-03-24 18:01:56 +0100 |
commit | 0c244247d1a0f484ab04b6aa38512db22d5eed8a (patch) | |
tree | 6e5609463496725407242376227c31ba0c028132 /sw/source/filter/inc/msfilter.hxx | |
parent | d78e644679be47d96bbb2e9d5909f2b559fa29c4 (diff) |
sw: replace boost::noncopyable with C++11 delete
Change-Id: I67d8d06012ac8835d957c77b122c8f0cda84a712
Diffstat (limited to 'sw/source/filter/inc/msfilter.hxx')
-rw-r--r-- | sw/source/filter/inc/msfilter.hxx | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/sw/source/filter/inc/msfilter.hxx b/sw/source/filter/inc/msfilter.hxx index 951e6e78d27f..66771cffa8c9 100644 --- a/sw/source/filter/inc/msfilter.hxx +++ b/sw/source/filter/inc/msfilter.hxx @@ -34,8 +34,6 @@ #include <shellio.hxx> #include <svl/zforlist.hxx> -#include <boost/noncopyable.hpp> - class SwDoc; class SwPaM; class SwTableNode; @@ -335,12 +333,16 @@ namespace sw @author <a href="mailto:mmaher@openoffice.org">Martin Maher</a> */ - class RedlineStack : public boost::noncopyable + class RedlineStack { private: std::vector<SwFltStackEntry *> maStack; typedef std::vector<SwFltStackEntry *>::reverse_iterator myriter; SwDoc &mrDoc; + + RedlineStack(RedlineStack const&) = delete; + RedlineStack& operator=(RedlineStack const&) = delete; + public: explicit RedlineStack(SwDoc &rDoc) : mrDoc(rDoc) {} void open(const SwPosition& rPos, const SfxPoolItem& rAttr); @@ -398,13 +400,17 @@ namespace sw const; }; - class WrtRedlineAuthor : public boost::noncopyable + class WrtRedlineAuthor { protected: - std::vector<OUString> maAuthors; // Array of Sw - Bookmarknames + std::vector<OUString> maAuthors; // Array of Sw - Bookmarknames + + private: + WrtRedlineAuthor(WrtRedlineAuthor const&) = delete; + WrtRedlineAuthor& operator=(WrtRedlineAuthor const&) = delete; public: - WrtRedlineAuthor() {} + WrtRedlineAuthor() = default; virtual ~WrtRedlineAuthor() {} sal_uInt16 AddName( const OUString& rNm ); |