From 31bf6d29b91a6af85fa5387fdc1e5be683cf9d0e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 26 Nov 2023 08:47:04 +0100 Subject: [PATCH] BulkEdit: forbid copying --- src/BulkEdit.hxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/BulkEdit.hxx b/src/BulkEdit.hxx index 942452319..4c100bb8c 100644 --- a/src/BulkEdit.hxx +++ b/src/BulkEdit.hxx @@ -20,6 +20,9 @@ public: ~ScopeBulkEdit() { partition.playlist.CommitBulk(partition.pc); } + + ScopeBulkEdit(const ScopeBulkEdit &) = delete; + ScopeBulkEdit &operator=(const ScopeBulkEdit &) = delete; }; #endif