summaryrefslogtreecommitdiff
path: root/src/queue
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-11-26 12:24:35 +0100
committerMax Kellermann <max@musicpd.org>2017-11-26 12:24:35 +0100
commit2f32df1f09225b19fe0d58b7bf97b33efd7c8e46 (patch)
tree8ee8cc4375fb880aaee394e6929a3f826942dce7 /src/queue
parent23adf501941b6cab0db4037cf9de8b56b2960f29 (diff)
queue/IdTable: make non-copyable
Diffstat (limited to 'src/queue')
-rw-r--r--src/queue/IdTable.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/queue/IdTable.hxx b/src/queue/IdTable.hxx
index 60e184091..5be7c7e4e 100644
--- a/src/queue/IdTable.hxx
+++ b/src/queue/IdTable.hxx
@@ -46,6 +46,9 @@ public:
delete[] data;
}
+ IdTable(const IdTable &) = delete;
+ IdTable &operator=(const IdTable &) = delete;
+
int IdToPosition(unsigned id) const noexcept {
return id < size
? data[id]