projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a43dcc
)
Remove unnecessary copy constructors (default ones are OK).
author
Carl Hetherington
<cth@carlh.net>
Wed, 26 Oct 2022 17:41:23 +0000
(19:41 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 26 Oct 2022 17:41:23 +0000
(19:41 +0200)
src/lib/enum_indexed_vector.h
patch
|
blob
|
history
diff --git
a/src/lib/enum_indexed_vector.h
b/src/lib/enum_indexed_vector.h
index 5032a0bf20826a86a7dd69aeafed9b0b72711064..0187daba2f0a93389d6448d345f61cf4492b1762 100644
(file)
--- a/
src/lib/enum_indexed_vector.h
+++ b/
src/lib/enum_indexed_vector.h
@@
-34,19
+34,6
@@
public:
: _data(static_cast<int>(Enum::COUNT))
{}
- EnumIndexedVector(EnumIndexedVector const& other)
- : _data(other._data)
- {}
-
- EnumIndexedVector& operator=(EnumIndexedVector const& other) {
- if (this == &other) {
- return *this;
- }
-
- _data = other._data;
- return *this;
- }
-
typename std::vector<Type>::reference operator[](int index) {
return _data[index];
}