diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-07-04 11:35:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-04 20:26:34 +0200 |
commit | 27f61c4cfb88c23ef3c370921e6f9c186c602175 (patch) | |
tree | ed4f7ac8892e1311c84e6e5d42b4154de673ce23 | |
parent | 9a5769dd1b30b7aa369affa93e38bfffe972a300 (diff) |
sc: remove trivial copy ctors for functors
The compiler will generate the same default copy ctors if needed.
Change-Id: I0029e2162ab7d3da9b0cd9bfcf8c06d55c59e2b7
Reviewed-on: https://gerrit.libreoffice.org/39497
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | sc/source/core/tool/rangelst.cxx | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx index cb5c8e831458..9ef8cfeea77d 100644 --- a/sc/source/core/tool/rangelst.cxx +++ b/sc/source/core/tool/rangelst.cxx @@ -42,7 +42,6 @@ class FindEnclosingRange { public: explicit FindEnclosingRange(const T& rTest) : mrTest(rTest) {} - FindEnclosingRange(const FindEnclosingRange& r) : mrTest(r.mrTest) {} bool operator() (const ScRange* pRange) const { return pRange->In(mrTest); @@ -56,7 +55,6 @@ class FindRangeIn { public: FindRangeIn(const T& rTest) : mrTest(rTest) {} - FindRangeIn(const FindRangeIn& r) : mrTest(r.mrTest) {} bool operator() (const ScRange* pRange) const { return mrTest.In(*pRange); @@ -70,7 +68,6 @@ class FindIntersectingRange { public: explicit FindIntersectingRange(const T& rTest) : mrTest(rTest) {} - FindIntersectingRange(const FindIntersectingRange& r) : mrTest(r.mrTest) {} bool operator() (const ScRange* pRange) const { return pRange->Intersects(mrTest); @@ -83,7 +80,6 @@ class AppendToList { public: explicit AppendToList(vector<ScRange*>& rRanges) : mrRanges(rRanges) {} - AppendToList(const AppendToList& r) : mrRanges(r.mrRanges) {} void operator() (const ScRange* p) { mrRanges.push_back(new ScRange(*p)); @@ -96,7 +92,6 @@ class CountCells { public: CountCells() : mnCellCount(0) {} - CountCells(const CountCells& r) : mnCellCount(r.mnCellCount) {} void operator() (const ScRange* p) { @@ -123,14 +118,6 @@ public: mcDelim(cDelim), mbFirst(true) {} - FormatString(const FormatString& r) : - mrStr(r.mrStr), - mnFlags(r.mnFlags), - mpDoc(r.mpDoc), - meConv(r.meConv), - mcDelim(r.mcDelim), - mbFirst(r.mbFirst) {} - void operator() (const ScRange* p) { OUString aStr(p->Format(mnFlags, mpDoc, meConv)); |