From dad49763d8c3e52c572b1aa15a3c3c7280e7179a Mon Sep 17 00:00:00 2001 From: Julian Harnath Date: Sat, 22 Feb 2014 10:59:04 +0000 Subject: [PATCH] Disallow copy-construction of BCertificate. * Prevents accidential creation of multiple instances with ownership of same fPrivate. --- headers/os/net/Certificate.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/headers/os/net/Certificate.h b/headers/os/net/Certificate.h index 120541a8ea..003c6415a2 100644 --- a/headers/os/net/Certificate.h +++ b/headers/os/net/Certificate.h @@ -26,6 +26,9 @@ private: class Private; BCertificate(Private* data); + BCertificate(const BCertificate& other); + // copy-construction not allowed + Private* fPrivate; };