From 3059d46d4139490be9316a632d6438115a9d6d65 Mon Sep 17 00:00:00 2001 From: "shaver%netscape.com" Date: Tue, 29 Jun 1999 22:33:18 +0000 Subject: [PATCH] partial backout of scc's nsCOMPtr, attempting to revive Win32 build --- xpcom/base/nsCOMPtr.h | 2 +- xpcom/glue/nsCOMPtr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xpcom/base/nsCOMPtr.h b/xpcom/base/nsCOMPtr.h index a8630cd7f20b..7faee7564585 100644 --- a/xpcom/base/nsCOMPtr.h +++ b/xpcom/base/nsCOMPtr.h @@ -189,7 +189,7 @@ class nsDerivedSafe : public T void operator delete( void*, size_t ); // NOT TO BE IMPLEMENTED // declaring |operator delete| private makes calling delete on an interface pointer a compile error - nsDerivedSafe& operator=( const T& ); // NOT TO BE IMPLEMENTED + nsDerivedSafe& operator=( const nsDerivedSafe& ); // NOT TO BE IMPLEMENTED // you may not call |operator=()| through a dereferenced |nsCOMPtr|, because you'd get the wrong one }; diff --git a/xpcom/glue/nsCOMPtr.h b/xpcom/glue/nsCOMPtr.h index a8630cd7f20b..7faee7564585 100644 --- a/xpcom/glue/nsCOMPtr.h +++ b/xpcom/glue/nsCOMPtr.h @@ -189,7 +189,7 @@ class nsDerivedSafe : public T void operator delete( void*, size_t ); // NOT TO BE IMPLEMENTED // declaring |operator delete| private makes calling delete on an interface pointer a compile error - nsDerivedSafe& operator=( const T& ); // NOT TO BE IMPLEMENTED + nsDerivedSafe& operator=( const nsDerivedSafe& ); // NOT TO BE IMPLEMENTED // you may not call |operator=()| through a dereferenced |nsCOMPtr|, because you'd get the wrong one };