Skip to content

Commit 8589f20

Browse files
author
pkasting
authored
Fix -Wdeprecated-copy. (#205)
Bug: chromium:1213098 Change-Id: I6230c6613f01e56e98d3deda66a9543042215206
1 parent 13d5770 commit 8589f20

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

internal/pack.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,8 @@ class SideMap {
153153
stride_ = kOrder == SideMapOrder::WidthMajor ? depth_ : width_;
154154
}
155155

156-
SideMap(const SideMap& other)
157-
: data_(other.data_),
158-
width_(other.width_),
159-
depth_(other.depth_),
160-
stride_(other.stride_) {}
156+
SideMap(const SideMap& other) = default;
157+
SideMap& operator=(const SideMap& other) = default;
161158

162159
int width() const { return width_; }
163160
int depth() const { return depth_; }

public/map.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ class VectorMap {
9393
public:
9494
VectorMap() : data_(nullptr), size_(0) {}
9595
VectorMap(Scalar* data, int size) : data_(data), size_(size) {}
96-
VectorMap(const VectorMap& other) : data_(other.data_), size_(other.size_) {}
96+
VectorMap(const VectorMap& other) = default;
97+
VectorMap& operator=(const VectorMap& other) = default;
9798

9899
int size() const { return size_; }
99100
Scalar* data() const { return data_; }

0 commit comments

Comments
 (0)