Bug 711647 - Add MOZ_DELETE to a bunch of deliberately-not-implemented methods across the tree. r=dbaron

This commit is contained in:
Jeff Walden
2011-12-16 14:42:07 -05:00
parent e74c3ca49c
commit edbb60f3de
30 changed files with 144 additions and 115 deletions

View File

@@ -39,6 +39,8 @@
#ifndef nsCOMArray_h__
#define nsCOMArray_h__
#include "mozilla/Attributes.h"
#include "nsVoidArray.h"
#include "nsISupports.h"
@@ -125,7 +127,7 @@ private:
nsVoidArray mArray;
// don't implement these, defaults will muck with refcounts!
nsCOMArray_base& operator=(const nsCOMArray_base& other);
nsCOMArray_base& operator=(const nsCOMArray_base& other) MOZ_DELETE;
};
// a non-XPCOM, refcounting array of XPCOM objects
@@ -277,7 +279,7 @@ class nsCOMArray : public nsCOMArray_base
private:
// don't implement these!
nsCOMArray<T>& operator=(const nsCOMArray<T>& other);
nsCOMArray<T>& operator=(const nsCOMArray<T>& other) MOZ_DELETE;
};