diff options
author | Steven Guo <steventimothyguo@gmail.com> | 2016-03-08 22:45:17 -0800 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-05 06:57:31 +0000 |
commit | be3c2ff9233e8d4c5afe9c696cb5a60b24b25efc (patch) | |
tree | 89d3be1ac1f9cf210d78aacdde94fa45f10ec692 /sc/inc/dpcache.hxx | |
parent | af23aa9a763bd8ebe160b95a48e1b0e650ec9ed3 (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/dpcache.hxx')
-rw-r--r-- | sc/inc/dpcache.hxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sc/inc/dpcache.hxx b/sc/inc/dpcache.hxx index 0926ba25c317..28442ef89552 100644 --- a/sc/inc/dpcache.hxx +++ b/sc/inc/dpcache.hxx @@ -24,7 +24,6 @@ #include "calcmacros.hxx" #include <tools/date.hxx> -#include <boost/noncopyable.hpp> #include <mdds/flat_segment_tree.hpp> #include <memory> @@ -41,7 +40,7 @@ struct ScDPNumGroupInfo; * This class represents the cached data part of the datapilot cache table * implementation. */ -class SC_DLLPUBLIC ScDPCache : private boost::noncopyable +class SC_DLLPUBLIC ScDPCache { typedef std::unordered_set<OUString, OUStringHash> StringSetType; @@ -50,17 +49,19 @@ public: typedef std::set<ScDPObject*> ScDPObjectSet; typedef std::vector<SCROW> IndexArrayType; - struct GroupItems : boost::noncopyable + struct GroupItems { ScDPItemDataVec maItems; ScDPNumGroupInfo maInfo; sal_Int32 mnGroupType; GroupItems(); + GroupItems(const GroupItems&) = delete; + const GroupItems& operator=(const GroupItems&) = delete; GroupItems(const ScDPNumGroupInfo& rInfo, sal_Int32 nGroupType); }; - struct Field : boost::noncopyable + struct Field { /** * Optional items for grouped field. @@ -82,6 +83,8 @@ public: sal_uLong mnNumFormat; Field(); + Field(const Field&) = delete; + const Field& operator=(const Field&) = delete; }; /** @@ -184,6 +187,8 @@ public: size_t GetFieldCount() const; size_t GetGroupFieldCount() const; + ScDPCache(const ScDPCache&) = delete; + const ScDPCache& operator=(const ScDPCache&) = delete; ScDPCache(ScDocument* pDoc); ~ScDPCache(); |