From 566e222bca7caddc66602bb3896c256fa4ca6094 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Fri, 2 Jan 2015 12:26:14 -0800 Subject: [PATCH] Bug 1117003 - Backout cset ca3c73188295 (Bug 1115903, Part 2), r=ehsan --- security/pkix/include/pkix/Input.h | 8 ++++---- security/pkix/include/pkix/ScopedPtr.h | 4 ++-- security/pkix/include/pkix/bind.h | 12 ++++++------ security/pkix/include/pkix/pkixtypes.h | 18 ++++++++++-------- security/pkix/lib/pkixbuild.cpp | 4 ++-- security/pkix/lib/pkixocsp.cpp | 5 +++-- security/pkix/lib/pkixutil.h | 8 ++++---- .../pkixocsp_VerifyEncodedOCSPResponse.cpp | 5 +++-- security/pkix/test/lib/pkixtestutil.h | 4 ++-- 9 files changed, 36 insertions(+), 32 deletions(-) diff --git a/security/pkix/include/pkix/Input.h b/security/pkix/include/pkix/Input.h index b05a21476f33..7399a7612eee 100644 --- a/security/pkix/include/pkix/Input.h +++ b/security/pkix/include/pkix/Input.h @@ -124,7 +124,7 @@ private: const uint8_t* data; size_t len; - void operator=(const Input&) = delete; // Use Init instead. + void operator=(const Input&) /* = delete */; // Use Init instead. }; inline bool @@ -291,7 +291,7 @@ public: Mark(const Reader& input, const uint8_t* mark) : input(input), mark(mark) { } const Reader& input; const uint8_t* const mark; - void operator=(const Mark&) = delete; + void operator=(const Mark&) /* = delete */; }; Mark GetMark() const { return Mark(*this, input); } @@ -320,8 +320,8 @@ private: const uint8_t* input; const uint8_t* end; - Reader(const Reader&) = delete; - void operator=(const Reader&) = delete; + Reader(const Reader&) /* = delete */; + void operator=(const Reader&) /* = delete */; }; inline bool diff --git a/security/pkix/include/pkix/ScopedPtr.h b/security/pkix/include/pkix/ScopedPtr.h index cd21d63afd7e..b28ee3519943 100644 --- a/security/pkix/include/pkix/ScopedPtr.h +++ b/security/pkix/include/pkix/ScopedPtr.h @@ -69,8 +69,8 @@ public: protected: T* mValue; - ScopedPtr(const ScopedPtr&) = delete; - void operator=(const ScopedPtr&) = delete; + ScopedPtr(const ScopedPtr&) /* = delete */; + void operator=(const ScopedPtr&) /* = delete */; }; template diff --git a/security/pkix/include/pkix/bind.h b/security/pkix/include/pkix/bind.h index db13deec376b..ed9174cf52cd 100644 --- a/security/pkix/include/pkix/bind.h +++ b/security/pkix/include/pkix/bind.h @@ -80,7 +80,7 @@ public: private: F f; B1& b1; - void operator=(const Bind1&) = delete; + void operator=(const Bind1&) /*= delete*/; }; template @@ -94,7 +94,7 @@ private: F f; B1& b1; B2& b2; - void operator=(const Bind2&) = delete; + void operator=(const Bind2&) /*= delete*/; }; template @@ -110,7 +110,7 @@ private: B1& b1; B2& b2; B3& b3; - void operator=(const Bind3&) = delete; + void operator=(const Bind3&) /*= delete*/; }; template