summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2018-07-31 03:55:40 +0200
committerGuillem Jover <guillem@debian.org>2018-08-01 06:00:39 +0200
commit975efaa8c9e527a7f99d198deee7194101b3df8d (patch)
tree88bd8363895ff5152d612e3fee3fa3c85d8a3ce5
parentc0c457246d25e7c64f65d1b37f976b7e804b10ab (diff)
downloaddpkg-975efaa8c9e527a7f99d198deee7194101b3df8d.tar.gz
dselect: Disable copy constructor and = operator for methodlist class
The constructor deals with dynamically allocated memory, so we should not be using the default copy constructor and = operators, disabled them to avoid surprises. Warned-by: cppcheck
-rw-r--r--dselect/method.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dselect/method.h b/dselect/method.h
index f9593ec27..415325c59 100644
--- a/dselect/method.h
+++ b/dselect/method.h
@@ -78,6 +78,8 @@ protected:
void kd_abort();
methodlist();
+ methodlist(const methodlist &) = delete;
+ methodlist &operator =(const methodlist &) = delete;
quitaction display();
~methodlist();
};