Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo

Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_DELETE '= delete'
This commit is contained in:
Ehsan Akhgari 2015-01-06 18:35:02 -05:00
parent e1826aad09
commit bd52bd3f4e
238 changed files with 882 additions and 882 deletions

View File

@ -243,9 +243,9 @@ public:
bool Next(nsAString& aAttrName, nsAString& aAttrValue);
private:
AttrIterator() MOZ_DELETE;
AttrIterator(const AttrIterator&) MOZ_DELETE;
AttrIterator& operator= (const AttrIterator&) MOZ_DELETE;
AttrIterator() = delete;
AttrIterator(const AttrIterator&) = delete;
AttrIterator& operator= (const AttrIterator&) = delete;
nsIContent* mContent;
uint32_t mAttrIdx;

View File

@ -78,9 +78,9 @@ protected:
AccGroupInfo(Accessible* aItem, a11y::role aRole);
private:
AccGroupInfo() MOZ_DELETE;
AccGroupInfo(const AccGroupInfo&) MOZ_DELETE;
AccGroupInfo& operator =(const AccGroupInfo&) MOZ_DELETE;
AccGroupInfo() = delete;
AccGroupInfo(const AccGroupInfo&) = delete;
AccGroupInfo& operator =(const AccGroupInfo&) = delete;
static mozilla::a11y::role BaseRole(mozilla::a11y::role aRole)
{

View File

@ -281,9 +281,9 @@ public:
virtual Accessible* Next();
private:
ItemIterator() MOZ_DELETE;
ItemIterator(const ItemIterator&) MOZ_DELETE;
ItemIterator& operator = (const ItemIterator&) MOZ_DELETE;
ItemIterator() = delete;
ItemIterator(const ItemIterator&) = delete;
ItemIterator& operator = (const ItemIterator&) = delete;
Accessible* mContainer;
Accessible* mAnchor;
@ -303,9 +303,9 @@ public:
virtual Accessible* Next();
private:
XULTreeItemIterator() MOZ_DELETE;
XULTreeItemIterator(const XULTreeItemIterator&) MOZ_DELETE;
XULTreeItemIterator& operator = (const XULTreeItemIterator&) MOZ_DELETE;
XULTreeItemIterator() = delete;
XULTreeItemIterator(const XULTreeItemIterator&) = delete;
XULTreeItemIterator& operator = (const XULTreeItemIterator&) = delete;
XULTreeAccessible* mXULTree;
nsITreeView* mTreeView;

View File

@ -32,8 +32,8 @@ protected:
void ProcessEventQueue();
private:
EventQueue(const EventQueue&) MOZ_DELETE;
EventQueue& operator = (const EventQueue&) MOZ_DELETE;
EventQueue(const EventQueue&) = delete;
EventQueue& operator = (const EventQueue&) = delete;
// Event queue processing
/**

View File

@ -95,8 +95,8 @@ public:
}
private:
Relation& operator = (const Relation&) MOZ_DELETE;
Relation(const Relation&) MOZ_DELETE;
Relation& operator = (const Relation&) = delete;
Relation(const Relation&) = delete;
nsAutoPtr<AccIterable> mFirstIter;
AccIterable* mLastIter;

View File

@ -32,9 +32,9 @@ public:
static void FormatTextDecorationStyle(uint8_t aValue, nsAString& aFormattedValue);
private:
StyleInfo() MOZ_DELETE;
StyleInfo(const StyleInfo&) MOZ_DELETE;
StyleInfo& operator = (const StyleInfo&) MOZ_DELETE;
StyleInfo() = delete;
StyleInfo(const StyleInfo&) = delete;
StyleInfo& operator = (const StyleInfo&) = delete;
void Margin(Side aSide, nsAString& aValue);

View File

@ -218,8 +218,8 @@ public:
{ mStartContainer = aContainer; mStartOffset = aOffset; }
private:
TextRange(const TextRange& aRange) MOZ_DELETE;
TextRange& operator=(const TextRange& aRange) MOZ_DELETE;
TextRange(const TextRange& aRange) = delete;
TextRange& operator=(const TextRange& aRange) = delete;
friend class HyperTextAccessible;
friend class xpcAccessibleTextRange;

View File

@ -39,9 +39,9 @@ public:
private:
~nsAccessiblePivot();
nsAccessiblePivot() MOZ_DELETE;
nsAccessiblePivot(const nsAccessiblePivot&) MOZ_DELETE;
void operator = (const nsAccessiblePivot&) MOZ_DELETE;
nsAccessiblePivot() = delete;
nsAccessiblePivot(const nsAccessiblePivot&) = delete;
void operator = (const nsAccessiblePivot&) = delete;
/*
* Notify all observers on a pivot change. Return true if it has changed and

View File

@ -1112,9 +1112,9 @@ protected:
nsRoleMapEntry* mRoleMapEntry;
private:
Accessible() MOZ_DELETE;
Accessible(const Accessible&) MOZ_DELETE;
Accessible& operator =(const Accessible&) MOZ_DELETE;
Accessible() = delete;
Accessible(const Accessible&) = delete;
Accessible& operator =(const Accessible&) = delete;
};

View File

@ -40,8 +40,8 @@ public:
/* [out] */ IEnumVARIANT** aEnumVaraint);
private:
ChildrenEnumVariant() MOZ_DELETE;
ChildrenEnumVariant& operator =(const ChildrenEnumVariant&) MOZ_DELETE;
ChildrenEnumVariant() = delete;
ChildrenEnumVariant& operator =(const ChildrenEnumVariant&) = delete;
ChildrenEnumVariant(const ChildrenEnumVariant& aEnumVariant) :
mAnchorAcc(aEnumVariant.mAnchorAcc), mCurAcc(aEnumVariant.mCurAcc),

View File

@ -61,9 +61,9 @@ public:
/* [retval][out] */ __RPC__deref_out_opt IRawElementProviderSimple** aRawElmProvider);
private:
uiaRawElmProvider() MOZ_DELETE;
uiaRawElmProvider& operator =(const uiaRawElmProvider&) MOZ_DELETE;
uiaRawElmProvider(const uiaRawElmProvider&) MOZ_DELETE;
uiaRawElmProvider() = delete;
uiaRawElmProvider& operator =(const uiaRawElmProvider&) = delete;
uiaRawElmProvider(const uiaRawElmProvider&) = delete;
protected:
nsRefPtr<AccessibleWrap> mAcc;

View File

@ -86,8 +86,8 @@ protected:
private:
Accessible* Intl();
xpcAccessible(const xpcAccessible&) MOZ_DELETE;
xpcAccessible& operator =(const xpcAccessible&) MOZ_DELETE;
xpcAccessible(const xpcAccessible&) = delete;
xpcAccessible& operator =(const xpcAccessible&) = delete;
};
} // namespace a11y

View File

@ -38,8 +38,8 @@ protected:
private:
ApplicationAccessible* Intl() { return mIntl->AsApplication(); }
xpcAccessibleApplication(const xpcAccessibleApplication&) MOZ_DELETE;
xpcAccessibleApplication& operator =(const xpcAccessibleApplication&) MOZ_DELETE;
xpcAccessibleApplication(const xpcAccessibleApplication&) = delete;
xpcAccessibleApplication& operator =(const xpcAccessibleApplication&) = delete;
};
} // namespace a11y

View File

@ -69,8 +69,8 @@ private:
friend class DocManager;
friend class DocAccessible;
xpcAccessibleDocument(const xpcAccessibleDocument&) MOZ_DELETE;
xpcAccessibleDocument& operator =(const xpcAccessibleDocument&) MOZ_DELETE;
xpcAccessibleDocument(const xpcAccessibleDocument&) = delete;
xpcAccessibleDocument& operator =(const xpcAccessibleDocument&) = delete;
nsRefPtrHashtable<nsPtrHashKey<const Accessible>, xpcAccessibleGeneric> mCache;
};

View File

@ -66,8 +66,8 @@ private:
friend class xpcAccessibleSelectable;
friend class xpcAccessibleValue;
xpcAccessibleGeneric(const xpcAccessibleGeneric&) MOZ_DELETE;
xpcAccessibleGeneric& operator =(const xpcAccessibleGeneric&) MOZ_DELETE;
xpcAccessibleGeneric(const xpcAccessibleGeneric&) = delete;
xpcAccessibleGeneric& operator =(const xpcAccessibleGeneric&) = delete;
};
inline Accessible*

View File

@ -35,8 +35,8 @@ protected:
virtual ~xpcAccessibleHyperLink() {}
private:
xpcAccessibleHyperLink(const xpcAccessibleHyperLink&) MOZ_DELETE;
xpcAccessibleHyperLink& operator =(const xpcAccessibleHyperLink&) MOZ_DELETE;
xpcAccessibleHyperLink(const xpcAccessibleHyperLink&) = delete;
xpcAccessibleHyperLink& operator =(const xpcAccessibleHyperLink&) = delete;
Accessible* Intl();
};

View File

@ -42,8 +42,8 @@ protected:
private:
HyperTextAccessible* Intl() { return mIntl->AsHyperText(); }
xpcAccessibleHyperText(const xpcAccessibleHyperText&) MOZ_DELETE;
xpcAccessibleHyperText& operator =(const xpcAccessibleHyperText&) MOZ_DELETE;
xpcAccessibleHyperText(const xpcAccessibleHyperText&) = delete;
xpcAccessibleHyperText& operator =(const xpcAccessibleHyperText&) = delete;
};
} // namespace a11y

View File

@ -33,8 +33,8 @@ protected:
private:
ImageAccessible* Intl() { return mIntl->AsImage(); }
xpcAccessibleImage(const xpcAccessibleImage&) MOZ_DELETE;
xpcAccessibleImage& operator =(const xpcAccessibleImage&) MOZ_DELETE;
xpcAccessibleImage(const xpcAccessibleImage&) = delete;
xpcAccessibleImage& operator =(const xpcAccessibleImage&) = delete;
};
} // namespace a11y

View File

@ -39,8 +39,8 @@ protected:
virtual ~xpcAccessibleSelectable() {}
private:
xpcAccessibleSelectable(const xpcAccessibleSelectable&) MOZ_DELETE;
xpcAccessibleSelectable& operator =(const xpcAccessibleSelectable&) MOZ_DELETE;
xpcAccessibleSelectable(const xpcAccessibleSelectable&) = delete;
xpcAccessibleSelectable& operator =(const xpcAccessibleSelectable&) = delete;
Accessible* Intl();
};

View File

@ -69,8 +69,8 @@ protected:
private:
TableAccessible* Intl() { return mIntl->AsTable(); }
xpcAccessibleTable(const xpcAccessibleTable&) MOZ_DELETE;
xpcAccessibleTable& operator =(const xpcAccessibleTable&) MOZ_DELETE;
xpcAccessibleTable(const xpcAccessibleTable&) = delete;
xpcAccessibleTable& operator =(const xpcAccessibleTable&) = delete;
};
} // namespace a11y

View File

@ -42,8 +42,8 @@ protected:
private:
TableCellAccessible* Intl() { return mIntl->AsTableCell(); }
xpcAccessibleTableCell(const xpcAccessibleTableCell&) MOZ_DELETE;
xpcAccessibleTableCell& operator =(const xpcAccessibleTableCell&) MOZ_DELETE;
xpcAccessibleTableCell(const xpcAccessibleTableCell&) = delete;
xpcAccessibleTableCell& operator =(const xpcAccessibleTableCell&) = delete;
};
} // namespace a11y

View File

@ -69,8 +69,8 @@ private:
friend class xpcAccessibleHyperText;
xpcAccessibleTextRange(const xpcAccessibleTextRange&) MOZ_DELETE;
xpcAccessibleTextRange& operator =(const xpcAccessibleTextRange&) MOZ_DELETE;
xpcAccessibleTextRange(const xpcAccessibleTextRange&) = delete;
xpcAccessibleTextRange& operator =(const xpcAccessibleTextRange&) = delete;
TextRange mRange;
};

View File

@ -34,8 +34,8 @@ protected:
private:
Accessible* Intl();
xpcAccessibleValue(const xpcAccessibleValue&) MOZ_DELETE;
xpcAccessibleValue& operator =(const xpcAccessibleValue&) MOZ_DELETE;
xpcAccessibleValue(const xpcAccessibleValue&) = delete;
xpcAccessibleValue& operator =(const xpcAccessibleValue&) = delete;
};
} // namespace a11y

View File

@ -42,12 +42,12 @@ protected:
~DOMCursor() {}
private:
DOMCursor() MOZ_DELETE;
DOMCursor() = delete;
// Calling Then() on DOMCursor is a mistake, since the DOMCursor object
// should not have a .then() method from JS' point of view.
already_AddRefed<mozilla::dom::Promise>
Then(JSContext* aCx, AnyCallback* aResolveCallback,
AnyCallback* aRejectCallback, ErrorResult& aRv) MOZ_DELETE;
AnyCallback* aRejectCallback, ErrorResult& aRv) = delete;
nsCOMPtr<nsICursorContinueCallback> mCallback;
bool mFinished;

View File

@ -134,9 +134,9 @@ protected:
{
}
private:
DOMMatrixReadOnly() MOZ_DELETE;
DOMMatrixReadOnly(const DOMMatrixReadOnly&) MOZ_DELETE;
DOMMatrixReadOnly& operator=(const DOMMatrixReadOnly&) MOZ_DELETE;
DOMMatrixReadOnly() = delete;
DOMMatrixReadOnly(const DOMMatrixReadOnly&) = delete;
DOMMatrixReadOnly& operator=(const DOMMatrixReadOnly&) = delete;
};
class DOMMatrix MOZ_FINAL : public DOMMatrixReadOnly

View File

@ -206,8 +206,8 @@ public:
}
private:
NodeInfo() MOZ_DELETE;
NodeInfo(const NodeInfo& aOther) MOZ_DELETE;
NodeInfo() = delete;
NodeInfo(const NodeInfo& aOther) = delete;
// NodeInfo is only constructed by nsNodeInfoManager which is a friend class.
// aName and aOwnerManager may not be null.

View File

@ -312,8 +312,8 @@ private:
void InitInternal(JSObject* aGlobal, JSContext* aCx, bool aIsMainThread);
AutoJSAPI(const AutoJSAPI&) MOZ_DELETE;
AutoJSAPI& operator= (const AutoJSAPI&) MOZ_DELETE;
AutoJSAPI(const AutoJSAPI&) = delete;
AutoJSAPI& operator= (const AutoJSAPI&) = delete;
};
/*

View File

@ -158,8 +158,8 @@ private: // constructor && distructor
void DontKeepAliveAnyMore();
private:
WebSocket(const WebSocket& x) MOZ_DELETE; // prevent bad usage
WebSocket& operator=(const WebSocket& x) MOZ_DELETE;
WebSocket(const WebSocket& x) = delete; // prevent bad usage
WebSocket& operator=(const WebSocket& x) = delete;
void Send(nsIInputStream* aMsgStream,
const nsACString& aMsgString,

View File

@ -129,8 +129,8 @@ public:
}
private:
nsAttrAndChildArray(const nsAttrAndChildArray& aOther) MOZ_DELETE;
nsAttrAndChildArray& operator=(const nsAttrAndChildArray& aOther) MOZ_DELETE;
nsAttrAndChildArray(const nsAttrAndChildArray& aOther) = delete;
nsAttrAndChildArray& operator=(const nsAttrAndChildArray& aOther) = delete;
void Clear();

View File

@ -95,7 +95,7 @@ public:
}
private:
nsDOMNavigationTiming(const nsDOMNavigationTiming &) MOZ_DELETE;
nsDOMNavigationTiming(const nsDOMNavigationTiming &) = delete;
~nsDOMNavigationTiming();
void Clear();

View File

@ -171,8 +171,8 @@ public:
private:
// Forbid copy-construction and assignment
Optional_base(const Optional_base& other) MOZ_DELETE;
const Optional_base &operator=(const Optional_base &other) MOZ_DELETE;
Optional_base(const Optional_base& other) = delete;
const Optional_base &operator=(const Optional_base &other) = delete;
protected:
Maybe<InternalType> mImpl;
@ -261,9 +261,9 @@ template<>
class Optional<JS::Value>
{
private:
Optional() MOZ_DELETE;
Optional() = delete;
explicit Optional(JS::Value aValue) MOZ_DELETE;
explicit Optional(JS::Value aValue) = delete;
};
// A specialization of Optional for NonNull that lets us get a T& from Value()
@ -354,8 +354,8 @@ public:
private:
// Forbid copy-construction and assignment
Optional(const Optional& other) MOZ_DELETE;
const Optional &operator=(const Optional &other) MOZ_DELETE;
Optional(const Optional& other) = delete;
const Optional &operator=(const Optional &other) = delete;
bool mPassed;
const nsAString* mStr;

View File

@ -1922,8 +1922,8 @@ private:
static const size_t sInlineCapacity = 64;
nsString::char_type mInlineStorage[sInlineCapacity];
FakeString(const FakeString& other) MOZ_DELETE;
void operator=(const FakeString& other) MOZ_DELETE;
FakeString(const FakeString& other) = delete;
void operator=(const FakeString& other) = delete;
void SetData(nsString::char_type* aData) {
MOZ_ASSERT(mFlags == nsString::F_TERMINATED);
@ -2062,14 +2062,14 @@ template<typename T,
bool isOwningUnion=IsBaseOf<AllOwningUnionBase, T>::value>
class SequenceTracer
{
explicit SequenceTracer() MOZ_DELETE; // Should never be instantiated
explicit SequenceTracer() = delete; // Should never be instantiated
};
// sequence<object> or sequence<object?>
template<>
class SequenceTracer<JSObject*, false, false, false>
{
explicit SequenceTracer() MOZ_DELETE; // Should never be instantiated
explicit SequenceTracer() = delete; // Should never be instantiated
public:
static void TraceSequence(JSTracer* trc, JSObject** objp, JSObject** end) {
@ -2083,7 +2083,7 @@ public:
template<>
class SequenceTracer<JS::Value, false, false, false>
{
explicit SequenceTracer() MOZ_DELETE; // Should never be instantiated
explicit SequenceTracer() = delete; // Should never be instantiated
public:
static void TraceSequence(JSTracer* trc, JS::Value* valp, JS::Value* end) {
@ -2097,7 +2097,7 @@ public:
template<typename T>
class SequenceTracer<Sequence<T>, false, false, false>
{
explicit SequenceTracer() MOZ_DELETE; // Should never be instantiated
explicit SequenceTracer() = delete; // Should never be instantiated
public:
static void TraceSequence(JSTracer* trc, Sequence<T>* seqp, Sequence<T>* end) {
@ -2111,7 +2111,7 @@ public:
template<typename T>
class SequenceTracer<nsTArray<T>, false, false, false>
{
explicit SequenceTracer() MOZ_DELETE; // Should never be instantiated
explicit SequenceTracer() = delete; // Should never be instantiated
public:
static void TraceSequence(JSTracer* trc, nsTArray<T>* seqp, nsTArray<T>* end) {
@ -2125,7 +2125,7 @@ public:
template<typename T>
class SequenceTracer<T, true, false, false>
{
explicit SequenceTracer() MOZ_DELETE; // Should never be instantiated
explicit SequenceTracer() = delete; // Should never be instantiated
public:
static void TraceSequence(JSTracer* trc, T* dictp, T* end) {
@ -2139,7 +2139,7 @@ public:
template<typename T>
class SequenceTracer<T, false, true, false>
{
explicit SequenceTracer() MOZ_DELETE; // Should never be instantiated
explicit SequenceTracer() = delete; // Should never be instantiated
public:
static void TraceSequence(JSTracer* trc, T* arrayp, T* end) {
@ -2153,7 +2153,7 @@ public:
template<typename T>
class SequenceTracer<T, false, false, true>
{
explicit SequenceTracer() MOZ_DELETE; // Should never be instantiated
explicit SequenceTracer() = delete; // Should never be instantiated
public:
static void TraceSequence(JSTracer* trc, T* arrayp, T* end) {
@ -2167,7 +2167,7 @@ public:
template<typename T>
class SequenceTracer<Nullable<T>, false, false, false>
{
explicit SequenceTracer() MOZ_DELETE; // Should never be instantiated
explicit SequenceTracer() = delete; // Should never be instantiated
public:
static void TraceSequence(JSTracer* trc, Nullable<T>* seqp,
@ -2207,7 +2207,7 @@ void TraceMozMap(JSTracer* trc, MozMap<T>& map)
template<typename T>
class SequenceTracer<MozMap<T>, false, false, false>
{
explicit SequenceTracer() MOZ_DELETE; // Should never be instantiated
explicit SequenceTracer() = delete; // Should never be instantiated
public:
static void TraceSequence(JSTracer* trc, MozMap<T>* seqp, MozMap<T>* end) {
@ -3118,7 +3118,7 @@ StrongOrRawPtr(T* aPtr)
template<class T, template<typename> class SmartPtr, class S>
inline void
StrongOrRawPtr(SmartPtr<S>&& aPtr) MOZ_DELETE;
StrongOrRawPtr(SmartPtr<S>&& aPtr) = delete;
inline
JSObject*

View File

@ -131,8 +131,8 @@ private:
mozilla::HoldJSObjects(this);
}
CallbackObject(const CallbackObject&) MOZ_DELETE;
CallbackObject& operator =(const CallbackObject&) MOZ_DELETE;
CallbackObject(const CallbackObject&) = delete;
CallbackObject& operator =(const CallbackObject&) = delete;
protected:
void DropJSObjects()
@ -181,7 +181,7 @@ protected:
private:
// We better not get copy-constructed
CallSetup(const CallSetup&) MOZ_DELETE;
CallSetup(const CallSetup&) = delete;
bool ShouldRethrowException(JS::Handle<JS::Value> aException);

View File

@ -9503,8 +9503,8 @@ class CGClass(CGThing):
def declare(self, cgClass):
name = cgClass.getNameString()
return ("%s(const %s&) MOZ_DELETE;\n"
"void operator=(const %s) MOZ_DELETE;\n" % (name, name, name))
return ("%s(const %s&) = delete;\n"
"void operator=(const %s) = delete;\n" % (name, name, name))
disallowedCopyConstructors = [DisallowedCopyConstructor()]
else:

View File

@ -158,7 +158,7 @@ private:
// Not to be implemented, to make sure people always pass this by
// reference, not by value.
ErrorResult(const ErrorResult&) MOZ_DELETE;
ErrorResult(const ErrorResult&) = delete;
};
/******************************************************************************

View File

@ -53,7 +53,7 @@ public:
}
private:
TypedArrayObjectStorage(const TypedArrayObjectStorage&) MOZ_DELETE;
TypedArrayObjectStorage(const TypedArrayObjectStorage&) = delete;
};
/*
@ -133,7 +133,7 @@ public:
}
private:
TypedArray_base(const TypedArray_base&) MOZ_DELETE;
TypedArray_base(const TypedArray_base&) = delete;
};
@ -188,7 +188,7 @@ private:
return obj;
}
TypedArray(const TypedArray&) MOZ_DELETE;
TypedArray(const TypedArray&) = delete;
};
typedef TypedArray<int8_t, js::UnwrapInt8Array, JS_GetInt8ArrayData,

View File

@ -868,201 +868,201 @@ private:
// We add signatures here that _could_ start matching if the codegen
// got data types wrong. That way if it ever does we'll have a call
// to these private deleted methods and compilation will fail.
void SetReadonlyByte(int8_t) MOZ_DELETE;
void SetReadonlyByte(int8_t) = delete;
template<typename T>
void SetWritableByte(T) MOZ_DELETE;
void SetWritableByte(T) = delete;
template<typename T>
void PassByte(T) MOZ_DELETE;
void PassNullableByte(Nullable<int8_t>&) MOZ_DELETE;
void PassByte(T) = delete;
void PassNullableByte(Nullable<int8_t>&) = delete;
template<typename T>
void PassOptionalByte(const Optional<T>&) MOZ_DELETE;
void PassOptionalByte(const Optional<T>&) = delete;
template<typename T>
void PassOptionalByteWithDefault(T) MOZ_DELETE;
void PassVariadicByte(Sequence<int8_t>&) MOZ_DELETE;
void PassOptionalByteWithDefault(T) = delete;
void PassVariadicByte(Sequence<int8_t>&) = delete;
void SetReadonlyShort(int16_t) MOZ_DELETE;
void SetReadonlyShort(int16_t) = delete;
template<typename T>
void SetWritableShort(T) MOZ_DELETE;
void SetWritableShort(T) = delete;
template<typename T>
void PassShort(T) MOZ_DELETE;
void PassShort(T) = delete;
template<typename T>
void PassOptionalShort(const Optional<T>&) MOZ_DELETE;
void PassOptionalShort(const Optional<T>&) = delete;
template<typename T>
void PassOptionalShortWithDefault(T) MOZ_DELETE;
void PassOptionalShortWithDefault(T) = delete;
void SetReadonlyLong(int32_t) MOZ_DELETE;
void SetReadonlyLong(int32_t) = delete;
template<typename T>
void SetWritableLong(T) MOZ_DELETE;
void SetWritableLong(T) = delete;
template<typename T>
void PassLong(T) MOZ_DELETE;
void PassLong(T) = delete;
template<typename T>
void PassOptionalLong(const Optional<T>&) MOZ_DELETE;
void PassOptionalLong(const Optional<T>&) = delete;
template<typename T>
void PassOptionalLongWithDefault(T) MOZ_DELETE;
void PassOptionalLongWithDefault(T) = delete;
void SetReadonlyLongLong(int64_t) MOZ_DELETE;
void SetReadonlyLongLong(int64_t) = delete;
template<typename T>
void SetWritableLongLong(T) MOZ_DELETE;
void SetWritableLongLong(T) = delete;
template<typename T>
void PassLongLong(T) MOZ_DELETE;
void PassLongLong(T) = delete;
template<typename T>
void PassOptionalLongLong(const Optional<T>&) MOZ_DELETE;
void PassOptionalLongLong(const Optional<T>&) = delete;
template<typename T>
void PassOptionalLongLongWithDefault(T) MOZ_DELETE;
void PassOptionalLongLongWithDefault(T) = delete;
void SetReadonlyOctet(uint8_t) MOZ_DELETE;
void SetReadonlyOctet(uint8_t) = delete;
template<typename T>
void SetWritableOctet(T) MOZ_DELETE;
void SetWritableOctet(T) = delete;
template<typename T>
void PassOctet(T) MOZ_DELETE;
void PassOctet(T) = delete;
template<typename T>
void PassOptionalOctet(const Optional<T>&) MOZ_DELETE;
void PassOptionalOctet(const Optional<T>&) = delete;
template<typename T>
void PassOptionalOctetWithDefault(T) MOZ_DELETE;
void PassOptionalOctetWithDefault(T) = delete;
void SetReadonlyUnsignedShort(uint16_t) MOZ_DELETE;
void SetReadonlyUnsignedShort(uint16_t) = delete;
template<typename T>
void SetWritableUnsignedShort(T) MOZ_DELETE;
void SetWritableUnsignedShort(T) = delete;
template<typename T>
void PassUnsignedShort(T) MOZ_DELETE;
void PassUnsignedShort(T) = delete;
template<typename T>
void PassOptionalUnsignedShort(const Optional<T>&) MOZ_DELETE;
void PassOptionalUnsignedShort(const Optional<T>&) = delete;
template<typename T>
void PassOptionalUnsignedShortWithDefault(T) MOZ_DELETE;
void PassOptionalUnsignedShortWithDefault(T) = delete;
void SetReadonlyUnsignedLong(uint32_t) MOZ_DELETE;
void SetReadonlyUnsignedLong(uint32_t) = delete;
template<typename T>
void SetWritableUnsignedLong(T) MOZ_DELETE;
void SetWritableUnsignedLong(T) = delete;
template<typename T>
void PassUnsignedLong(T) MOZ_DELETE;
void PassUnsignedLong(T) = delete;
template<typename T>
void PassOptionalUnsignedLong(const Optional<T>&) MOZ_DELETE;
void PassOptionalUnsignedLong(const Optional<T>&) = delete;
template<typename T>
void PassOptionalUnsignedLongWithDefault(T) MOZ_DELETE;
void PassOptionalUnsignedLongWithDefault(T) = delete;
void SetReadonlyUnsignedLongLong(uint64_t) MOZ_DELETE;
void SetReadonlyUnsignedLongLong(uint64_t) = delete;
template<typename T>
void SetWritableUnsignedLongLong(T) MOZ_DELETE;
void SetWritableUnsignedLongLong(T) = delete;
template<typename T>
void PassUnsignedLongLong(T) MOZ_DELETE;
void PassUnsignedLongLong(T) = delete;
template<typename T>
void PassOptionalUnsignedLongLong(const Optional<T>&) MOZ_DELETE;
void PassOptionalUnsignedLongLong(const Optional<T>&) = delete;
template<typename T>
void PassOptionalUnsignedLongLongWithDefault(T) MOZ_DELETE;
void PassOptionalUnsignedLongLongWithDefault(T) = delete;
// Enforce that only const things are passed for sequences
void PassSequence(Sequence<int32_t> &) MOZ_DELETE;
void PassNullableSequence(Nullable< Sequence<int32_t> >&) MOZ_DELETE;
void PassOptionalNullableSequenceWithDefaultValue(Nullable< Sequence<int32_t> >&) MOZ_DELETE;
void PassSequenceOfAny(JSContext*, Sequence<JS::Value>&) MOZ_DELETE;
void PassNullableSequenceOfAny(JSContext*, Nullable<Sequence<JS::Value> >&) MOZ_DELETE;
void PassOptionalSequenceOfAny(JSContext*, Optional<Sequence<JS::Value> >&) MOZ_DELETE;
void PassOptionalNullableSequenceOfAny(JSContext*, Optional<Nullable<Sequence<JS::Value> > >&) MOZ_DELETE;
void PassOptionalSequenceOfAnyWithDefaultValue(JSContext*, Nullable<Sequence<JS::Value> >&) MOZ_DELETE;
void PassSequenceOfSequenceOfAny(JSContext*, Sequence<Sequence<JS::Value> >&) MOZ_DELETE;
void PassSequenceOfNullableSequenceOfAny(JSContext*, Sequence<Nullable<Sequence<JS::Value> > >&) MOZ_DELETE;
void PassNullableSequenceOfNullableSequenceOfAny(JSContext*, Nullable<Sequence<Nullable<Sequence<JS::Value> > > >&) MOZ_DELETE;
void PassOptionalNullableSequenceOfNullableSequenceOfAny(JSContext*, Optional<Nullable<Sequence<Nullable<Sequence<JS::Value> > > > >&) MOZ_DELETE;
void PassSequenceOfObject(JSContext*, Sequence<JSObject*>&) MOZ_DELETE;
void PassSequenceOfNullableObject(JSContext*, Sequence<JSObject*>&) MOZ_DELETE;
void PassOptionalNullableSequenceOfNullableSequenceOfObject(JSContext*, Optional<Nullable<Sequence<Nullable<Sequence<JSObject*> > > > >&) MOZ_DELETE;
void PassOptionalNullableSequenceOfNullableSequenceOfNullableObject(JSContext*, Optional<Nullable<Sequence<Nullable<Sequence<JSObject*> > > > >&) MOZ_DELETE;
void PassSequence(Sequence<int32_t> &) = delete;
void PassNullableSequence(Nullable< Sequence<int32_t> >&) = delete;
void PassOptionalNullableSequenceWithDefaultValue(Nullable< Sequence<int32_t> >&) = delete;
void PassSequenceOfAny(JSContext*, Sequence<JS::Value>&) = delete;
void PassNullableSequenceOfAny(JSContext*, Nullable<Sequence<JS::Value> >&) = delete;
void PassOptionalSequenceOfAny(JSContext*, Optional<Sequence<JS::Value> >&) = delete;
void PassOptionalNullableSequenceOfAny(JSContext*, Optional<Nullable<Sequence<JS::Value> > >&) = delete;
void PassOptionalSequenceOfAnyWithDefaultValue(JSContext*, Nullable<Sequence<JS::Value> >&) = delete;
void PassSequenceOfSequenceOfAny(JSContext*, Sequence<Sequence<JS::Value> >&) = delete;
void PassSequenceOfNullableSequenceOfAny(JSContext*, Sequence<Nullable<Sequence<JS::Value> > >&) = delete;
void PassNullableSequenceOfNullableSequenceOfAny(JSContext*, Nullable<Sequence<Nullable<Sequence<JS::Value> > > >&) = delete;
void PassOptionalNullableSequenceOfNullableSequenceOfAny(JSContext*, Optional<Nullable<Sequence<Nullable<Sequence<JS::Value> > > > >&) = delete;
void PassSequenceOfObject(JSContext*, Sequence<JSObject*>&) = delete;
void PassSequenceOfNullableObject(JSContext*, Sequence<JSObject*>&) = delete;
void PassOptionalNullableSequenceOfNullableSequenceOfObject(JSContext*, Optional<Nullable<Sequence<Nullable<Sequence<JSObject*> > > > >&) = delete;
void PassOptionalNullableSequenceOfNullableSequenceOfNullableObject(JSContext*, Optional<Nullable<Sequence<Nullable<Sequence<JSObject*> > > > >&) = delete;
// Enforce that only const things are passed for optional
void PassOptionalByte(Optional<int8_t>&) MOZ_DELETE;
void PassOptionalNullableByte(Optional<Nullable<int8_t> >&) MOZ_DELETE;
void PassOptionalShort(Optional<int16_t>&) MOZ_DELETE;
void PassOptionalLong(Optional<int32_t>&) MOZ_DELETE;
void PassOptionalLongLong(Optional<int64_t>&) MOZ_DELETE;
void PassOptionalOctet(Optional<uint8_t>&) MOZ_DELETE;
void PassOptionalUnsignedShort(Optional<uint16_t>&) MOZ_DELETE;
void PassOptionalUnsignedLong(Optional<uint32_t>&) MOZ_DELETE;
void PassOptionalUnsignedLongLong(Optional<uint64_t>&) MOZ_DELETE;
void PassOptionalSelf(Optional<TestInterface*> &) MOZ_DELETE;
void PassOptionalNonNullSelf(Optional<NonNull<TestInterface> >&) MOZ_DELETE;
void PassOptionalByte(Optional<int8_t>&) = delete;
void PassOptionalNullableByte(Optional<Nullable<int8_t> >&) = delete;
void PassOptionalShort(Optional<int16_t>&) = delete;
void PassOptionalLong(Optional<int32_t>&) = delete;
void PassOptionalLongLong(Optional<int64_t>&) = delete;
void PassOptionalOctet(Optional<uint8_t>&) = delete;
void PassOptionalUnsignedShort(Optional<uint16_t>&) = delete;
void PassOptionalUnsignedLong(Optional<uint32_t>&) = delete;
void PassOptionalUnsignedLongLong(Optional<uint64_t>&) = delete;
void PassOptionalSelf(Optional<TestInterface*> &) = delete;
void PassOptionalNonNullSelf(Optional<NonNull<TestInterface> >&) = delete;
void PassOptionalOther(Optional<IndirectlyImplementedInterface*>&);
void PassOptionalNonNullOther(Optional<NonNull<IndirectlyImplementedInterface> >&);
void PassOptionalExternal(Optional<TestExternalInterface*>&) MOZ_DELETE;
void PassOptionalNonNullExternal(Optional<TestExternalInterface*>&) MOZ_DELETE;
void PassOptionalSequence(Optional<Sequence<int32_t> >&) MOZ_DELETE;
void PassOptionalNullableSequence(Optional<Nullable<Sequence<int32_t> > >&) MOZ_DELETE;
void PassOptionalObjectSequence(Optional<Sequence<OwningNonNull<TestInterface> > >&) MOZ_DELETE;
void PassOptionalArrayBuffer(Optional<ArrayBuffer>&) MOZ_DELETE;
void PassOptionalNullableArrayBuffer(Optional<ArrayBuffer*>&) MOZ_DELETE;
void PassOptionalEnum(Optional<TestEnum>&) MOZ_DELETE;
void PassOptionalCallback(JSContext*, Optional<OwningNonNull<TestCallback> >&) MOZ_DELETE;
void PassOptionalNullableCallback(JSContext*, Optional<nsRefPtr<TestCallback> >&) MOZ_DELETE;
void PassOptionalAny(Optional<JS::Handle<JS::Value> >&) MOZ_DELETE;
void PassOptionalExternal(Optional<TestExternalInterface*>&) = delete;
void PassOptionalNonNullExternal(Optional<TestExternalInterface*>&) = delete;
void PassOptionalSequence(Optional<Sequence<int32_t> >&) = delete;
void PassOptionalNullableSequence(Optional<Nullable<Sequence<int32_t> > >&) = delete;
void PassOptionalObjectSequence(Optional<Sequence<OwningNonNull<TestInterface> > >&) = delete;
void PassOptionalArrayBuffer(Optional<ArrayBuffer>&) = delete;
void PassOptionalNullableArrayBuffer(Optional<ArrayBuffer*>&) = delete;
void PassOptionalEnum(Optional<TestEnum>&) = delete;
void PassOptionalCallback(JSContext*, Optional<OwningNonNull<TestCallback> >&) = delete;
void PassOptionalNullableCallback(JSContext*, Optional<nsRefPtr<TestCallback> >&) = delete;
void PassOptionalAny(Optional<JS::Handle<JS::Value> >&) = delete;
// And test that string stuff is always const
void PassString(nsAString&) MOZ_DELETE;
void PassNullableString(nsAString&) MOZ_DELETE;
void PassOptionalString(Optional<nsAString>&) MOZ_DELETE;
void PassOptionalStringWithDefaultValue(nsAString&) MOZ_DELETE;
void PassOptionalNullableString(Optional<nsAString>&) MOZ_DELETE;
void PassOptionalNullableStringWithDefaultValue(nsAString&) MOZ_DELETE;
void PassVariadicString(Sequence<nsString>&) MOZ_DELETE;
void PassString(nsAString&) = delete;
void PassNullableString(nsAString&) = delete;
void PassOptionalString(Optional<nsAString>&) = delete;
void PassOptionalStringWithDefaultValue(nsAString&) = delete;
void PassOptionalNullableString(Optional<nsAString>&) = delete;
void PassOptionalNullableStringWithDefaultValue(nsAString&) = delete;
void PassVariadicString(Sequence<nsString>&) = delete;
// cstrings should be const as well
void PassByteString(nsCString&) MOZ_DELETE;
void PassNullableByteString(nsCString&) MOZ_DELETE;
void PassOptionalByteString(Optional<nsCString>&) MOZ_DELETE;
void PassOptionalNullableByteString(Optional<nsCString>&) MOZ_DELETE;
void PassVariadicByteString(Sequence<nsCString>&) MOZ_DELETE;
void PassByteString(nsCString&) = delete;
void PassNullableByteString(nsCString&) = delete;
void PassOptionalByteString(Optional<nsCString>&) = delete;
void PassOptionalNullableByteString(Optional<nsCString>&) = delete;
void PassVariadicByteString(Sequence<nsCString>&) = delete;
// Make sure dictionary arguments are always const
void PassDictionary(JSContext*, Dict&) MOZ_DELETE;
void PassOtherDictionary(GrandparentDict&) MOZ_DELETE;
void PassSequenceOfDictionaries(JSContext*, Sequence<Dict>&) MOZ_DELETE;
void PassDictionaryOrLong(JSContext*, Dict&) MOZ_DELETE;
void PassDictContainingDict(JSContext*, DictContainingDict&) MOZ_DELETE;
void PassDictContainingSequence(DictContainingSequence&) MOZ_DELETE;
void PassDictionary(JSContext*, Dict&) = delete;
void PassOtherDictionary(GrandparentDict&) = delete;
void PassSequenceOfDictionaries(JSContext*, Sequence<Dict>&) = delete;
void PassDictionaryOrLong(JSContext*, Dict&) = delete;
void PassDictContainingDict(JSContext*, DictContainingDict&) = delete;
void PassDictContainingSequence(DictContainingSequence&) = delete;
// Make sure various nullable things are always const
void PassNullableEnum(Nullable<TestEnum>&) MOZ_DELETE;
void PassNullableEnum(Nullable<TestEnum>&) = delete;
// Make sure unions are always const
void PassUnion(JSContext*, ObjectOrLong& arg) MOZ_DELETE;
void PassUnionWithNullable(JSContext*, ObjectOrNullOrLong& arg) MOZ_DELETE;
void PassNullableUnion(JSContext*, Nullable<ObjectOrLong>&) MOZ_DELETE;
void PassOptionalUnion(JSContext*, Optional<ObjectOrLong>&) MOZ_DELETE;
void PassOptionalNullableUnion(JSContext*, Optional<Nullable<ObjectOrLong> >&) MOZ_DELETE;
void PassOptionalNullableUnionWithDefaultValue(JSContext*, Nullable<ObjectOrLong>&) MOZ_DELETE;
void PassUnion(JSContext*, ObjectOrLong& arg) = delete;
void PassUnionWithNullable(JSContext*, ObjectOrNullOrLong& arg) = delete;
void PassNullableUnion(JSContext*, Nullable<ObjectOrLong>&) = delete;
void PassOptionalUnion(JSContext*, Optional<ObjectOrLong>&) = delete;
void PassOptionalNullableUnion(JSContext*, Optional<Nullable<ObjectOrLong> >&) = delete;
void PassOptionalNullableUnionWithDefaultValue(JSContext*, Nullable<ObjectOrLong>&) = delete;
// Make sure various date stuff is const as needed
void PassNullableDate(Nullable<Date>&) MOZ_DELETE;
void PassOptionalDate(Optional<Date>&) MOZ_DELETE;
void PassOptionalNullableDate(Optional<Nullable<Date> >&) MOZ_DELETE;
void PassOptionalNullableDateWithDefaultValue(Nullable<Date>&) MOZ_DELETE;
void PassDateSequence(Sequence<Date>&) MOZ_DELETE;
void PassNullableDateSequence(Sequence<Nullable<Date> >&) MOZ_DELETE;
void PassNullableDate(Nullable<Date>&) = delete;
void PassOptionalDate(Optional<Date>&) = delete;
void PassOptionalNullableDate(Optional<Nullable<Date> >&) = delete;
void PassOptionalNullableDateWithDefaultValue(Nullable<Date>&) = delete;
void PassDateSequence(Sequence<Date>&) = delete;
void PassNullableDateSequence(Sequence<Nullable<Date> >&) = delete;
// Make sure variadics are const as needed
void PassVariadicAny(JSContext*, Sequence<JS::Value>&) MOZ_DELETE;
void PassVariadicObject(JSContext*, Sequence<JSObject*>&) MOZ_DELETE;
void PassVariadicNullableObject(JSContext*, Sequence<JSObject*>&) MOZ_DELETE;
void PassVariadicAny(JSContext*, Sequence<JS::Value>&) = delete;
void PassVariadicObject(JSContext*, Sequence<JSObject*>&) = delete;
void PassVariadicNullableObject(JSContext*, Sequence<JSObject*>&) = delete;
// Ensure NonNull does not leak in
void PassSelf(NonNull<TestInterface>&) MOZ_DELETE;
void PassSelf(OwningNonNull<TestInterface>&) MOZ_DELETE;
void PassSelf(const NonNull<TestInterface>&) MOZ_DELETE;
void PassSelf(const OwningNonNull<TestInterface>&) MOZ_DELETE;
void PassOther(NonNull<IndirectlyImplementedInterface>&) MOZ_DELETE;
void PassOther(const NonNull<IndirectlyImplementedInterface>&) MOZ_DELETE;
void PassOther(OwningNonNull<IndirectlyImplementedInterface>&) MOZ_DELETE;
void PassOther(const OwningNonNull<IndirectlyImplementedInterface>&) MOZ_DELETE;
void PassCallbackInterface(OwningNonNull<TestCallbackInterface>&) MOZ_DELETE;
void PassCallbackInterface(const OwningNonNull<TestCallbackInterface>&) MOZ_DELETE;
void PassCallbackInterface(NonNull<TestCallbackInterface>&) MOZ_DELETE;
void PassCallbackInterface(const NonNull<TestCallbackInterface>&) MOZ_DELETE;
void PassCallback(OwningNonNull<TestCallback>&) MOZ_DELETE;
void PassCallback(const OwningNonNull<TestCallback>&) MOZ_DELETE;
void PassCallback(NonNull<TestCallback>&) MOZ_DELETE;
void PassCallback(const NonNull<TestCallback>&) MOZ_DELETE;
void PassString(const NonNull<nsAString>&) MOZ_DELETE;
void PassString(NonNull<nsAString>&) MOZ_DELETE;
void PassString(const OwningNonNull<nsAString>&) MOZ_DELETE;
void PassString(OwningNonNull<nsAString>&) MOZ_DELETE;
void PassSelf(NonNull<TestInterface>&) = delete;
void PassSelf(OwningNonNull<TestInterface>&) = delete;
void PassSelf(const NonNull<TestInterface>&) = delete;
void PassSelf(const OwningNonNull<TestInterface>&) = delete;
void PassOther(NonNull<IndirectlyImplementedInterface>&) = delete;
void PassOther(const NonNull<IndirectlyImplementedInterface>&) = delete;
void PassOther(OwningNonNull<IndirectlyImplementedInterface>&) = delete;
void PassOther(const OwningNonNull<IndirectlyImplementedInterface>&) = delete;
void PassCallbackInterface(OwningNonNull<TestCallbackInterface>&) = delete;
void PassCallbackInterface(const OwningNonNull<TestCallbackInterface>&) = delete;
void PassCallbackInterface(NonNull<TestCallbackInterface>&) = delete;
void PassCallbackInterface(const NonNull<TestCallbackInterface>&) = delete;
void PassCallback(OwningNonNull<TestCallback>&) = delete;
void PassCallback(const OwningNonNull<TestCallback>&) = delete;
void PassCallback(NonNull<TestCallback>&) = delete;
void PassCallback(const NonNull<TestCallback>&) = delete;
void PassString(const NonNull<nsAString>&) = delete;
void PassString(NonNull<nsAString>&) = delete;
void PassString(const OwningNonNull<nsAString>&) = delete;
void PassString(OwningNonNull<nsAString>&) = delete;
};
class TestIndexedGetterInterface : public nsISupports,
@ -1075,9 +1075,9 @@ public:
virtual nsISupports* GetParentObject();
uint32_t IndexedGetter(uint32_t, bool&);
uint32_t IndexedGetter(uint32_t&) MOZ_DELETE;
uint32_t IndexedGetter(uint32_t&) = delete;
uint32_t Item(uint32_t&);
uint32_t Item(uint32_t, bool&) MOZ_DELETE;
uint32_t Item(uint32_t, bool&) = delete;
uint32_t Length();
void LegacyCall(JS::Handle<JS::Value>);
};
@ -1188,7 +1188,7 @@ public:
bool NameIsEnumerable(const nsAString&);
void NamedItem(const nsAString&, nsAString&);
void IndexedSetter(uint32_t, int32_t&);
void IndexedSetter(uint32_t, const nsAString&) MOZ_DELETE;
void IndexedSetter(uint32_t, const nsAString&) = delete;
void NamedSetter(const nsAString&, const nsAString&);
void Stringify(nsAString&);
uint32_t Length();
@ -1219,11 +1219,11 @@ public:
virtual nsISupports* GetParentObject();
void IndexedDeleter(uint32_t, bool&);
void IndexedDeleter(uint32_t) MOZ_DELETE;
void IndexedDeleter(uint32_t) = delete;
long IndexedGetter(uint32_t, bool&);
uint32_t Length();
void DelItem(uint32_t);
void DelItem(uint32_t, bool&) MOZ_DELETE;
void DelItem(uint32_t, bool&) = delete;
};
class TestIndexedDeleterWithRetvalInterface : public nsISupports,
@ -1236,11 +1236,11 @@ public:
virtual nsISupports* GetParentObject();
bool IndexedDeleter(uint32_t, bool&);
bool IndexedDeleter(uint32_t) MOZ_DELETE;
bool IndexedDeleter(uint32_t) = delete;
long IndexedGetter(uint32_t, bool&);
uint32_t Length();
bool DelItem(uint32_t);
bool DelItem(uint32_t, bool&) MOZ_DELETE;
bool DelItem(uint32_t, bool&) = delete;
};
class TestNamedDeleterInterface : public nsISupports,
@ -1268,11 +1268,11 @@ public:
virtual nsISupports* GetParentObject();
bool NamedDeleter(const nsAString&, bool&);
bool NamedDeleter(const nsAString&) MOZ_DELETE;
bool NamedDeleter(const nsAString&) = delete;
long NamedGetter(const nsAString&, bool&);
bool NameIsEnumerable(const nsAString&);
bool DelNamedItem(const nsAString&);
bool DelNamedItem(const nsAString&, bool&) MOZ_DELETE;
bool DelNamedItem(const nsAString&, bool&) = delete;
void GetSupportedNames(unsigned, nsTArray<nsString>&);
};
@ -1290,11 +1290,11 @@ public:
uint32_t Length();
void NamedDeleter(const nsAString&, bool&);
void NamedDeleter(const nsAString&) MOZ_DELETE;
void NamedDeleter(const nsAString&) = delete;
long NamedGetter(const nsAString&, bool&);
bool NameIsEnumerable(const nsAString&);
void DelNamedItem(const nsAString&);
void DelNamedItem(const nsAString&, bool&) MOZ_DELETE;
void DelNamedItem(const nsAString&, bool&) = delete;
void GetSupportedNames(unsigned, nsTArray<nsString>&);
};

View File

@ -131,8 +131,8 @@ protected:
nsresult mHardwareStateChangeReason;
private:
CameraControlImpl(const CameraControlImpl&) MOZ_DELETE;
CameraControlImpl& operator=(const CameraControlImpl&) MOZ_DELETE;
CameraControlImpl(const CameraControlImpl&) = delete;
CameraControlImpl& operator=(const CameraControlImpl&) = delete;
};
} // namespace mozilla

View File

@ -234,8 +234,8 @@ protected:
#endif
private:
nsDOMCameraControl(const nsDOMCameraControl&) MOZ_DELETE;
nsDOMCameraControl& operator=(const nsDOMCameraControl&) MOZ_DELETE;
nsDOMCameraControl(const nsDOMCameraControl&) = delete;
nsDOMCameraControl& operator=(const nsDOMCameraControl&) = delete;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsDOMCameraControl, NS_DOM_CAMERA_CONTROL_CID)

View File

@ -41,8 +41,8 @@ protected:
class DOMCallback;
private:
DOMCameraControlListener(const DOMCameraControlListener&) MOZ_DELETE;
DOMCameraControlListener& operator=(const DOMCameraControlListener&) MOZ_DELETE;
DOMCameraControlListener(const DOMCameraControlListener&) = delete;
DOMCameraControlListener& operator=(const DOMCameraControlListener&) = delete;
};
} // namespace mozilla

View File

@ -86,10 +86,10 @@ protected:
~nsDOMCameraManager();
private:
nsDOMCameraManager() MOZ_DELETE;
nsDOMCameraManager() = delete;
explicit nsDOMCameraManager(nsPIDOMWindow* aWindow);
nsDOMCameraManager(const nsDOMCameraManager&) MOZ_DELETE;
nsDOMCameraManager& operator=(const nsDOMCameraManager&) MOZ_DELETE;
nsDOMCameraManager(const nsDOMCameraManager&) = delete;
nsDOMCameraManager& operator=(const nsDOMCameraManager&) = delete;
protected:
uint64_t mWindowId;

View File

@ -68,6 +68,6 @@ protected:
virtual nsresult PullParametersImpl() MOZ_OVERRIDE { return NS_ERROR_NOT_INITIALIZED; }
private:
FallbackCameraControl(const FallbackCameraControl&) MOZ_DELETE;
FallbackCameraControl& operator=(const FallbackCameraControl&) MOZ_DELETE;
FallbackCameraControl(const FallbackCameraControl&) = delete;
FallbackCameraControl& operator=(const FallbackCameraControl&) = delete;
};

View File

@ -193,8 +193,8 @@ protected:
ReentrantMonitor mReentrantMonitor;
private:
nsGonkCameraControl(const nsGonkCameraControl&) MOZ_DELETE;
nsGonkCameraControl& operator=(const nsGonkCameraControl&) MOZ_DELETE;
nsGonkCameraControl(const nsGonkCameraControl&) = delete;
nsGonkCameraControl& operator=(const nsGonkCameraControl&) = delete;
};
// camera driver callbacks

View File

@ -124,8 +124,8 @@ protected:
int mSensorOrientation;
private:
GonkCameraHardware(const GonkCameraHardware&) MOZ_DELETE;
GonkCameraHardware& operator=(const GonkCameraHardware&) MOZ_DELETE;
GonkCameraHardware(const GonkCameraHardware&) = delete;
GonkCameraHardware& operator=(const GonkCameraHardware&) = delete;
};
} // namespace android

View File

@ -59,8 +59,8 @@ protected:
nsresult ForceAsyncFailWithCodeInternal(const char* aFile, int aLine);
private:
TestGonkCameraControl(const TestGonkCameraControl&) MOZ_DELETE;
TestGonkCameraControl& operator=(const TestGonkCameraControl&) MOZ_DELETE;
TestGonkCameraControl(const TestGonkCameraControl&) = delete;
TestGonkCameraControl& operator=(const TestGonkCameraControl&) = delete;
};
#define ForceMethodFailWithCode() ForceMethodFailWithCodeInternal(__FILE__, __LINE__)

View File

@ -65,8 +65,8 @@ protected:
void InjectFakeSystemFailure();
private:
TestGonkCameraHardware(const TestGonkCameraHardware&) MOZ_DELETE;
TestGonkCameraHardware& operator=(const TestGonkCameraHardware&) MOZ_DELETE;
TestGonkCameraHardware(const TestGonkCameraHardware&) = delete;
TestGonkCameraHardware& operator=(const TestGonkCameraHardware&) = delete;
};
#define IsTestCase(test) IsTestCaseInternal((test), __FILE__, __LINE__)

View File

@ -79,7 +79,7 @@ private:
void HoldData();
void DropData();
ImageData() MOZ_DELETE;
ImageData() = delete;
uint32_t mWidth, mHeight;
JS::Heap<JSObject*> mData;

View File

@ -41,7 +41,7 @@ public:
static already_AddRefed<CellBroadcast>
Create(nsPIDOMWindow* aOwner, ErrorResult& aRv);
CellBroadcast() MOZ_DELETE;
CellBroadcast() = delete;
CellBroadcast(nsPIDOMWindow *aWindow,
nsICellBroadcastService* aService);

View File

@ -139,7 +139,7 @@ public:
nsACString& aOutGroup);
private:
EncodingUtils() MOZ_DELETE;
EncodingUtils() = delete;
};
} // dom

View File

@ -143,7 +143,7 @@ public:
}
private:
void operator=(const TypedEventHandler&) MOZ_DELETE;
void operator=(const TypedEventHandler&) = delete;
void ReleaseHandler()
{

View File

@ -40,9 +40,9 @@ private:
nsRefPtr<FetchDriverObserver> mObserver;
uint32_t mFetchRecursionCount;
FetchDriver() MOZ_DELETE;
FetchDriver(const FetchDriver&) MOZ_DELETE;
FetchDriver& operator=(const FetchDriver&) MOZ_DELETE;
FetchDriver() = delete;
FetchDriver(const FetchDriver&) = delete;
FetchDriver& operator=(const FetchDriver&) = delete;
~FetchDriver();
nsresult Fetch(bool aCORSFlag);

View File

@ -53,7 +53,7 @@ public:
{
}
explicit Headers(const Headers& aOther) MOZ_DELETE;
explicit Headers(const Headers& aOther) = delete;
static bool PrefEnabled(JSContext* cx, JSObject* obj);

View File

@ -34,7 +34,7 @@ class Response MOZ_FINAL : public nsISupports
public:
Response(nsIGlobalObject* aGlobal, InternalResponse* aInternalResponse);
Response(const Response& aOther) MOZ_DELETE;
Response(const Response& aOther) = delete;
JSObject*
WrapObject(JSContext* aCx) MOZ_OVERRIDE

View File

@ -128,8 +128,8 @@ private:
explicit ThreadLocal(const nsID& aBackgroundChildLoggingId);
~ThreadLocal();
ThreadLocal() MOZ_DELETE;
ThreadLocal(const ThreadLocal& aOther) MOZ_DELETE;
ThreadLocal() = delete;
ThreadLocal(const ThreadLocal& aOther) = delete;
};
class BackgroundFactoryChild MOZ_FINAL
@ -193,7 +193,7 @@ private:
MOZ_OVERRIDE;
bool
SendDeleteMe() MOZ_DELETE;
SendDeleteMe() = delete;
};
class BackgroundDatabaseChild;
@ -396,7 +396,7 @@ private:
RecvInvalidate() MOZ_OVERRIDE;
bool
SendDeleteMe() MOZ_DELETE;
SendDeleteMe() = delete;
};
class BackgroundVersionChangeTransactionChild;
@ -496,7 +496,7 @@ private:
MOZ_OVERRIDE;
bool
SendDeleteMe() MOZ_DELETE;
SendDeleteMe() = delete;
};
class BackgroundVersionChangeTransactionChild MOZ_FINAL
@ -552,7 +552,7 @@ private:
MOZ_OVERRIDE;
bool
SendDeleteMe() MOZ_DELETE;
SendDeleteMe() = delete;
};
class BackgroundRequestChild MOZ_FINAL
@ -719,10 +719,10 @@ private:
// Force callers to use SendContinueInternal.
bool
SendContinue(const CursorRequestParams& aParams) MOZ_DELETE;
SendContinue(const CursorRequestParams& aParams) = delete;
bool
SendDeleteMe() MOZ_DELETE;
SendDeleteMe() = delete;
};
// XXX This doesn't belong here. However, we're not yet porting MutableFile

View File

@ -3699,8 +3699,8 @@ private:
}
// No funny business allowed.
CachedStatement(const CachedStatement&) MOZ_DELETE;
CachedStatement& operator=(const CachedStatement&) MOZ_DELETE;
CachedStatement(const CachedStatement&) = delete;
CachedStatement& operator=(const CachedStatement&) = delete;
};
class NormalTransaction MOZ_FINAL
@ -4898,7 +4898,7 @@ private:
// Must call SendResponseInternal!
bool
SendResponse(const CursorResponse& aResponse) MOZ_DELETE;
SendResponse(const CursorResponse& aResponse) = delete;
// IPDL methods.
virtual void

View File

@ -276,8 +276,8 @@ public:
const TabContext& GetTabContext();
private:
MaybeInvalidTabContext(const MaybeInvalidTabContext&) MOZ_DELETE;
MaybeInvalidTabContext& operator=(const MaybeInvalidTabContext&) MOZ_DELETE;
MaybeInvalidTabContext(const MaybeInvalidTabContext&) = delete;
MaybeInvalidTabContext& operator=(const MaybeInvalidTabContext&) = delete;
const char* mInvalidReason;
MutableTabContext mTabContext;

View File

@ -107,7 +107,7 @@ public:
protected:
virtual ~MediaRecorder();
MediaRecorder& operator = (const MediaRecorder& x) MOZ_DELETE;
MediaRecorder& operator = (const MediaRecorder& x) = delete;
// Create dataavailable event with Blob data and it runs in main thread
nsresult CreateAndDispatchBlobEvent(already_AddRefed<nsIDOMBlob>&& aBlob);
// Creating a simple event to notify UA simple event.
@ -119,7 +119,7 @@ protected:
// Set encoded MIME type.
void SetMimeType(const nsString &aMimeType);
MediaRecorder(const MediaRecorder& x) MOZ_DELETE; // prevent bad usage
MediaRecorder(const MediaRecorder& x) = delete; // prevent bad usage
// Remove session pointer.
void RemoveSession(Session* aSession);
// Functions for Session to query input source info.

View File

@ -37,8 +37,8 @@ public:
operator bool() const { return mHeld; }
SelfReference(const SelfReference& aOther) MOZ_DELETE;
void operator=(const SelfReference& aOther) MOZ_DELETE;
SelfReference(const SelfReference& aOther) = delete;
void operator=(const SelfReference& aOther) = delete;
private:
bool mHeld;
};

View File

@ -111,8 +111,8 @@ private:
uint64_t mCaps;
// It is not safe to copy this object.
CDMCaps(const CDMCaps&) MOZ_DELETE;
CDMCaps& operator=(const CDMCaps&) MOZ_DELETE;
CDMCaps(const CDMCaps&) = delete;
CDMCaps& operator=(const CDMCaps&) = delete;
};
} // namespace mozilla

View File

@ -66,7 +66,7 @@ public:
};
protected:
Box() MOZ_DELETE;
Box() = delete;
Box(const nsACString& aType, ISOControl* aControl);
ISOControl* mControl;
@ -94,7 +94,7 @@ protected:
// FullBox methods
FullBox(const nsACString& aType, uint8_t aVersion, uint32_t aFlags,
ISOControl* aControl);
FullBox() MOZ_DELETE;
FullBox() = delete;
};
/**
@ -118,7 +118,7 @@ public:
protected:
// DefaultContainerImpl methods
DefaultContainerImpl(const nsACString& aType, ISOControl* aControl);
DefaultContainerImpl() MOZ_DELETE;
DefaultContainerImpl() = delete;
nsTArray<nsRefPtr<MuxerOperation>> boxes;
};
@ -502,7 +502,7 @@ public:
nsresult Write() MOZ_OVERRIDE;
protected:
SampleEntryBox() MOZ_DELETE;
SampleEntryBox() = delete;
};
// 14496-12 8.5.2 'Sample Description Box'

View File

@ -81,9 +81,9 @@ private:
private:
// Forbidden
MessageHandler() MOZ_DELETE;
MessageHandler(const MessageHandler &rhs) MOZ_DELETE;
const MessageHandler &operator=(const MessageHandler &rhs) MOZ_DELETE;
MessageHandler() = delete;
MessageHandler(const MessageHandler &rhs) = delete;
const MessageHandler &operator=(const MessageHandler &rhs) = delete;
GonkVideoDecoderManager *mManager;
};
@ -100,9 +100,9 @@ private:
private:
// Forbidden
VideoResourceListener() MOZ_DELETE;
VideoResourceListener(const VideoResourceListener &rhs) MOZ_DELETE;
const VideoResourceListener &operator=(const VideoResourceListener &rhs) MOZ_DELETE;
VideoResourceListener() = delete;
VideoResourceListener(const VideoResourceListener &rhs) = delete;
const VideoResourceListener &operator=(const VideoResourceListener &rhs) = delete;
GonkVideoDecoderManager *mManager;
};

View File

@ -55,8 +55,8 @@ private:
bool ensureLoaded();
I420ColorConverterHelper(const I420ColorConverterHelper &) MOZ_DELETE;
const I420ColorConverterHelper &operator=(const I420ColorConverterHelper &) MOZ_DELETE;
I420ColorConverterHelper(const I420ColorConverterHelper &) = delete;
const I420ColorConverterHelper &operator=(const I420ColorConverterHelper &) = delete;
};
} // namespace android

View File

@ -148,9 +148,9 @@ protected:
private:
// Forbidden
MediaCodecProxy() MOZ_DELETE;
MediaCodecProxy(const MediaCodecProxy &) MOZ_DELETE;
const MediaCodecProxy &operator=(const MediaCodecProxy &) MOZ_DELETE;
MediaCodecProxy() = delete;
MediaCodecProxy(const MediaCodecProxy &) = delete;
const MediaCodecProxy &operator=(const MediaCodecProxy &) = delete;
// Constructor for MediaCodecProxy::CreateByType
MediaCodecProxy(sp<ALooper> aLooper,

View File

@ -165,8 +165,8 @@ protected:
private:
// Forbidden
Track(const Track &rhs) MOZ_DELETE;
const Track &operator=(const Track&) MOZ_DELETE;
Track(const Track &rhs) = delete;
const Track &operator=(const Track&) = delete;
};
// Receive a message from MessageHandler.
@ -202,9 +202,9 @@ private:
private:
// Forbidden
MessageHandler() MOZ_DELETE;
MessageHandler(const MessageHandler& rhs) MOZ_DELETE;
const MessageHandler& operator=(const MessageHandler& rhs) MOZ_DELETE;
MessageHandler() = delete;
MessageHandler(const MessageHandler& rhs) = delete;
const MessageHandler& operator=(const MessageHandler& rhs) = delete;
MediaCodecReader *mReader;
};
@ -223,9 +223,9 @@ private:
private:
// Forbidden
VideoResourceListener() MOZ_DELETE;
VideoResourceListener(const VideoResourceListener& rhs) MOZ_DELETE;
const VideoResourceListener& operator=(const VideoResourceListener& rhs) MOZ_DELETE;
VideoResourceListener() = delete;
VideoResourceListener(const VideoResourceListener& rhs) = delete;
const VideoResourceListener& operator=(const VideoResourceListener& rhs) = delete;
MediaCodecReader* mReader;
};
@ -243,8 +243,8 @@ private:
private:
// Forbidden
AudioTrack(const AudioTrack &rhs) MOZ_DELETE;
const AudioTrack &operator=(const AudioTrack &rhs) MOZ_DELETE;
AudioTrack(const AudioTrack &rhs) = delete;
const AudioTrack &operator=(const AudioTrack &rhs) = delete;
};
struct VideoTrack : public Track
@ -263,8 +263,8 @@ private:
private:
// Forbidden
VideoTrack(const VideoTrack &rhs) MOZ_DELETE;
const VideoTrack &operator=(const VideoTrack &rhs) MOZ_DELETE;
VideoTrack(const VideoTrack &rhs) = delete;
const VideoTrack &operator=(const VideoTrack &rhs) = delete;
};
struct CodecBufferInfo
@ -291,9 +291,9 @@ private:
private:
// Forbidden
SignalObject() MOZ_DELETE;
SignalObject(const SignalObject &rhs) MOZ_DELETE;
const SignalObject &operator=(const SignalObject &rhs) MOZ_DELETE;
SignalObject() = delete;
SignalObject(const SignalObject &rhs) = delete;
const SignalObject &operator=(const SignalObject &rhs) = delete;
Monitor mMonitor;
bool mSignaled;
@ -312,9 +312,9 @@ private:
private:
// Forbidden
ParseCachedDataRunnable() MOZ_DELETE;
ParseCachedDataRunnable(const ParseCachedDataRunnable &rhs) MOZ_DELETE;
const ParseCachedDataRunnable &operator=(const ParseCachedDataRunnable &rhs) MOZ_DELETE;
ParseCachedDataRunnable() = delete;
ParseCachedDataRunnable(const ParseCachedDataRunnable &rhs) = delete;
const ParseCachedDataRunnable &operator=(const ParseCachedDataRunnable &rhs) = delete;
nsRefPtr<MediaCodecReader> mReader;
nsAutoArrayPtr<const char> mBuffer;
@ -334,9 +334,9 @@ private:
private:
// Forbidden
ProcessCachedDataTask() MOZ_DELETE;
ProcessCachedDataTask(const ProcessCachedDataTask &rhs) MOZ_DELETE;
const ProcessCachedDataTask &operator=(const ProcessCachedDataTask &rhs) MOZ_DELETE;
ProcessCachedDataTask() = delete;
ProcessCachedDataTask(const ProcessCachedDataTask &rhs) = delete;
const ProcessCachedDataTask &operator=(const ProcessCachedDataTask &rhs) = delete;
nsRefPtr<MediaCodecReader> mReader;
int64_t mOffset;
@ -344,8 +344,8 @@ private:
friend class ProcessCachedDataTask;
// Forbidden
MediaCodecReader() MOZ_DELETE;
const MediaCodecReader& operator=(const MediaCodecReader& rhs) MOZ_DELETE;
MediaCodecReader() = delete;
const MediaCodecReader& operator=(const MediaCodecReader& rhs) = delete;
bool ReallocateResources();
void ReleaseCriticalResources();

View File

@ -172,9 +172,9 @@ protected:
private:
// Hide these. User should always use creator functions to get a media codec.
OMXCodecWrapper() MOZ_DELETE;
OMXCodecWrapper(const OMXCodecWrapper&) MOZ_DELETE;
OMXCodecWrapper& operator=(const OMXCodecWrapper&) MOZ_DELETE;
OMXCodecWrapper() = delete;
OMXCodecWrapper(const OMXCodecWrapper&) = delete;
OMXCodecWrapper& operator=(const OMXCodecWrapper&) = delete;
/**
* Create a media codec of given type. It will be a AVC/H.264 video encoder if
@ -238,9 +238,9 @@ protected:
ABuffer* aData) MOZ_OVERRIDE;
private:
// Hide these. User should always use creator functions to get a media codec.
OMXAudioEncoder() MOZ_DELETE;
OMXAudioEncoder(const OMXAudioEncoder&) MOZ_DELETE;
OMXAudioEncoder& operator=(const OMXAudioEncoder&) MOZ_DELETE;
OMXAudioEncoder() = delete;
OMXAudioEncoder(const OMXAudioEncoder&) = delete;
OMXAudioEncoder& operator=(const OMXAudioEncoder&) = delete;
/**
* Create a audio codec. It will be a AAC encoder if aCodecType is
@ -331,9 +331,9 @@ protected:
private:
// Hide these. User should always use creator functions to get a media codec.
OMXVideoEncoder() MOZ_DELETE;
OMXVideoEncoder(const OMXVideoEncoder&) MOZ_DELETE;
OMXVideoEncoder& operator=(const OMXVideoEncoder&) MOZ_DELETE;
OMXVideoEncoder() = delete;
OMXVideoEncoder(const OMXVideoEncoder&) = delete;
OMXVideoEncoder& operator=(const OMXVideoEncoder&) = delete;
/**
* Create a video codec. It will be a AVC/H.264 encoder if aCodecType is

View File

@ -50,9 +50,9 @@ protected:
private:
// Forbidden
MediaResourceHandler() MOZ_DELETE;
MediaResourceHandler(const MediaResourceHandler &) MOZ_DELETE;
const MediaResourceHandler &operator=(const MediaResourceHandler &) MOZ_DELETE;
MediaResourceHandler() = delete;
MediaResourceHandler(const MediaResourceHandler &) = delete;
const MediaResourceHandler &operator=(const MediaResourceHandler &) = delete;
// Resource Notification Listener
wp<ResourceListener> mListener;

View File

@ -143,8 +143,8 @@ public:
}
private:
FFTBlock(const FFTBlock& other) MOZ_DELETE;
void operator=(const FFTBlock& other) MOZ_DELETE;
FFTBlock(const FFTBlock& other) = delete;
void operator=(const FFTBlock& other) = delete;
void EnsureFFT()
{

View File

@ -59,8 +59,8 @@ public:
size_t sizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;
private:
HRTFDatabase(const HRTFDatabase& other) MOZ_DELETE;
void operator=(const HRTFDatabase& other) MOZ_DELETE;
HRTFDatabase(const HRTFDatabase& other) = delete;
void operator=(const HRTFDatabase& other) = delete;
explicit HRTFDatabase(float sampleRate);

View File

@ -67,8 +67,8 @@ public:
size_t sizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;
private:
HRTFElevation(const HRTFElevation& other) MOZ_DELETE;
void operator=(const HRTFElevation& other) MOZ_DELETE;
HRTFElevation(const HRTFElevation& other) = delete;
void operator=(const HRTFElevation& other) = delete;
HRTFElevation(HRTFKernelList *kernelListL, int elevation, float sampleRate)
: m_elevationAngle(elevation)

View File

@ -73,8 +73,8 @@ public:
}
private:
HRTFKernel(const HRTFKernel& other) MOZ_DELETE;
void operator=(const HRTFKernel& other) MOZ_DELETE;
HRTFKernel(const HRTFKernel& other) = delete;
void operator=(const HRTFKernel& other) = delete;
// Note: this is destructive on the passed in |impulseResponse|.
HRTFKernel(float* impulseResponse, size_t fftSize, float sampleRate);

View File

@ -41,7 +41,7 @@ public:
Shutdown();
private:
MobileConnectionChild() MOZ_DELETE;
MobileConnectionChild() = delete;
// MOZ_FINAL suppresses -Werror,-Wdelete-non-virtual-dtor
~MobileConnectionChild()

View File

@ -49,7 +49,7 @@ private:
~MobileMessageThread() {}
// Don't try to use the default constructor.
MobileMessageThread() MOZ_DELETE;
MobileMessageThread() = delete;
ThreadData mData;
};

View File

@ -89,7 +89,7 @@ public:
}
private:
MozNDEFRecord() MOZ_DELETE;
MozNDEFRecord() = delete;
nsRefPtr<nsPIDOMWindow> mWindow;
void HoldData();
void DropData();

View File

@ -61,7 +61,7 @@ private:
{ }
bool
operator==(const OriginOrPatternString& aOther) MOZ_DELETE;
operator==(const OriginOrPatternString& aOther) = delete;
bool mIsOrigin;
bool mIsPattern;

View File

@ -24,7 +24,7 @@ class SVGSVGElement;
class SVGFragmentIdentifier
{
// To prevent the class being instantiated
SVGFragmentIdentifier() MOZ_DELETE;
SVGFragmentIdentifier() = delete;
public:
/**

View File

@ -1315,9 +1315,9 @@ public:
WorkerAvailable(JSContext* aCx, JSObject* /* unused */);
private:
ChromeWorkerPrivate() MOZ_DELETE;
ChromeWorkerPrivate(const ChromeWorkerPrivate& aRHS) MOZ_DELETE;
ChromeWorkerPrivate& operator =(const ChromeWorkerPrivate& aRHS) MOZ_DELETE;
ChromeWorkerPrivate() = delete;
ChromeWorkerPrivate(const ChromeWorkerPrivate& aRHS) = delete;
ChromeWorkerPrivate& operator =(const ChromeWorkerPrivate& aRHS) = delete;
};
WorkerPrivate*

View File

@ -131,8 +131,8 @@ public:
private:
nsTemplateMatch(const nsTemplateMatch& aMatch) MOZ_DELETE;
void operator=(const nsTemplateMatch& aMatch) MOZ_DELETE;
nsTemplateMatch(const nsTemplateMatch& aMatch) = delete;
void operator=(const nsTemplateMatch& aMatch) = delete;
};
#endif // nsTemplateMatch_h__

View File

@ -103,7 +103,7 @@ public:
private:
// Default ctor shouldn't be used.
PermissionKey() MOZ_DELETE;
PermissionKey() = delete;
// Dtor shouldn't be used outside of the class.
~PermissionKey() {};
@ -283,7 +283,7 @@ private:
bool browserOnly;
nsCOMArray<nsIPermission> permissions;
GetPermissionsForAppStruct() MOZ_DELETE;
GetPermissionsForAppStruct() = delete;
GetPermissionsForAppStruct(uint32_t aAppId, bool aBrowserOnly)
: appId(aAppId)
, browserOnly(aBrowserOnly)

View File

@ -35,8 +35,8 @@ public:
size_t ByteLength() const { return mArrayLength * sizeof(ElemType); }
private:
HeapCopyOfStackArray() MOZ_DELETE;
HeapCopyOfStackArray(const HeapCopyOfStackArray&) MOZ_DELETE;
HeapCopyOfStackArray() = delete;
HeapCopyOfStackArray(const HeapCopyOfStackArray&) = delete;
const size_t mArrayLength;
ScopedDeletePtr<ElemType> const mArrayData;

View File

@ -50,8 +50,8 @@ private:
gfx::Matrix mTransform;
RefPtr<gfx::SourceSurface> mSurface;
AutoMoz2DMaskData(const AutoMoz2DMaskData&) MOZ_DELETE;
AutoMoz2DMaskData& operator=(const AutoMoz2DMaskData&) MOZ_DELETE;
AutoMoz2DMaskData(const AutoMoz2DMaskData&) = delete;
AutoMoz2DMaskData& operator=(const AutoMoz2DMaskData&) = delete;
};
}

View File

@ -10,7 +10,7 @@
#include "BasicLayers.h" // for BasicLayerManager
#include "ReadbackLayer.h" // for ReadbackLayer
#include "gfxContext.h" // for gfxContext, etc
#include "mozilla/Attributes.h" // for MOZ_DELETE, MOZ_STACK_CLASS
#include "mozilla/Attributes.h" // for MOZ_STACK_CLASS
#include "mozilla/Maybe.h" // for Maybe
#include "nsAutoPtr.h" // for nsRefPtr
#include "nsDebug.h" // for NS_ASSERTION

View File

@ -8,7 +8,7 @@
#include "Units.h" // for ScreenPoint, etc
#include "mozilla/layers/LayerManagerComposite.h" // for LayerManagerComposite
#include "mozilla/Attributes.h" // for MOZ_DELETE, MOZ_FINAL, etc
#include "mozilla/Attributes.h" // for MOZ_FINAL, etc
#include "mozilla/RefPtr.h" // for RefCounted
#include "mozilla/TimeStamp.h" // for TimeStamp
#include "mozilla/dom/ScreenOrientation.h" // for ScreenOrientation
@ -227,8 +227,8 @@ public:
private:
AsyncCompositionManager* mManager;
AutoResolveRefLayers(const AutoResolveRefLayers&) MOZ_DELETE;
AutoResolveRefLayers& operator=(const AutoResolveRefLayers&) MOZ_DELETE;
AutoResolveRefLayers(const AutoResolveRefLayers&) = delete;
AutoResolveRefLayers& operator=(const AutoResolveRefLayers&) = delete;
};
} // layers

View File

@ -1800,9 +1800,9 @@ public:
IFACEMETHODIMP GetCurrentFontFile(IDWriteFontFile ** fontFile);
private:
BundledFontFileEnumerator() MOZ_DELETE;
BundledFontFileEnumerator(const BundledFontFileEnumerator&) MOZ_DELETE;
BundledFontFileEnumerator& operator=(const BundledFontFileEnumerator&) MOZ_DELETE;
BundledFontFileEnumerator() = delete;
BundledFontFileEnumerator(const BundledFontFileEnumerator&) = delete;
BundledFontFileEnumerator& operator=(const BundledFontFileEnumerator&) = delete;
nsRefPtr<IDWriteFactory> mFactory;
@ -1868,8 +1868,8 @@ public:
IDWriteFontFileEnumerator **aFontFileEnumerator);
private:
BundledFontLoader(const BundledFontLoader&) MOZ_DELETE;
BundledFontLoader& operator=(const BundledFontLoader&) MOZ_DELETE;
BundledFontLoader(const BundledFontLoader&) = delete;
BundledFontLoader& operator=(const BundledFontLoader&) = delete;
};
IFACEMETHODIMP

View File

@ -307,8 +307,8 @@ public:
private:
hb_blob_t* mBlob;
// not implemented:
AutoTable(const AutoTable&) MOZ_DELETE;
AutoTable& operator=(const AutoTable&) MOZ_DELETE;
AutoTable(const AutoTable&) = delete;
AutoTable& operator=(const AutoTable&) = delete;
};
already_AddRefed<gfxFont>

View File

@ -27,7 +27,7 @@ class gfxFontMissingGlyphs MOZ_FINAL
typedef mozilla::gfx::Pattern Pattern;
typedef mozilla::gfx::Rect Rect;
gfxFontMissingGlyphs() MOZ_DELETE; // prevent instantiation
gfxFontMissingGlyphs() = delete; // prevent instantiation
public:
/**

View File

@ -137,8 +137,8 @@ private:
private:
// not implemented:
gfxGlyphExtents(const gfxGlyphExtents& aOther) MOZ_DELETE;
gfxGlyphExtents& operator=(const gfxGlyphExtents& aOther) MOZ_DELETE;
gfxGlyphExtents(const gfxGlyphExtents& aOther) = delete;
gfxGlyphExtents& operator=(const gfxGlyphExtents& aOther) = delete;
};
#endif

View File

@ -374,8 +374,8 @@ private:
gfxPrefs();
~gfxPrefs();
gfxPrefs(const gfxPrefs&) MOZ_DELETE;
gfxPrefs& operator=(const gfxPrefs&) MOZ_DELETE;
gfxPrefs(const gfxPrefs&) = delete;
gfxPrefs& operator=(const gfxPrefs&) = delete;
};
#undef DECL_GFX_PREF /* Don't need it outside of this file */

View File

@ -55,8 +55,8 @@ public:
private:
// don't allow copying via construction or assignment
gfxQuartzNativeDrawing(const gfxQuartzNativeDrawing&) MOZ_DELETE;
const gfxQuartzNativeDrawing& operator=(const gfxQuartzNativeDrawing&) MOZ_DELETE;
gfxQuartzNativeDrawing(const gfxQuartzNativeDrawing&) = delete;
const gfxQuartzNativeDrawing& operator=(const gfxQuartzNativeDrawing&) = delete;
// Final destination context
mozilla::RefPtr<DrawTarget> mDrawTarget;

View File

@ -169,7 +169,7 @@ private:
friend class AsyncNotifyCurrentStateRunnable;
friend class ProgressTrackerInit;
ProgressTracker(const ProgressTracker& aOther) MOZ_DELETE;
ProgressTracker(const ProgressTracker& aOther) = delete;
// This method should only be called once, and only on an ProgressTracker
// that was initialized without an image. ProgressTrackerInit automates this.

View File

@ -196,8 +196,8 @@ private:
DebugOnly<bool> mMoved;
// Disable harmful methods.
InterruptFrame(const InterruptFrame& aOther) MOZ_DELETE;
InterruptFrame& operator=(const InterruptFrame&) MOZ_DELETE;
InterruptFrame(const InterruptFrame& aOther) = delete;
InterruptFrame& operator=(const InterruptFrame&) = delete;
};
class MOZ_STACK_CLASS MessageChannel::CxxStackFrame
@ -246,9 +246,9 @@ private:
MessageChannel& mThat;
// Disable harmful methods.
CxxStackFrame() MOZ_DELETE;
CxxStackFrame(const CxxStackFrame&) MOZ_DELETE;
CxxStackFrame& operator=(const CxxStackFrame&) MOZ_DELETE;
CxxStackFrame() = delete;
CxxStackFrame(const CxxStackFrame&) = delete;
CxxStackFrame& operator=(const CxxStackFrame&) = delete;
};
namespace {

View File

@ -177,7 +177,7 @@ class Builder {
}
private:
BuiltThing() MOZ_DELETE;
BuiltThing() = delete;
};
public:

View File

@ -269,8 +269,8 @@ class HashMap
private:
// HashMap is not copyable or assignable
HashMap(const HashMap &hm) MOZ_DELETE;
HashMap &operator=(const HashMap &hm) MOZ_DELETE;
HashMap(const HashMap &hm) = delete;
HashMap &operator=(const HashMap &hm) = delete;
friend class Impl::Enum;
};
@ -494,8 +494,8 @@ class HashSet
private:
// HashSet is not copyable or assignable
HashSet(const HashSet &hs) MOZ_DELETE;
HashSet &operator=(const HashSet &hs) MOZ_DELETE;
HashSet(const HashSet &hs) = delete;
HashSet &operator=(const HashSet &hs) = delete;
friend class Impl::Enum;
};
@ -653,8 +653,8 @@ class HashMapEntry
Value & value() { return value_; }
private:
HashMapEntry(const HashMapEntry &) MOZ_DELETE;
void operator=(const HashMapEntry &) MOZ_DELETE;
HashMapEntry(const HashMapEntry &) = delete;
void operator=(const HashMapEntry &) = delete;
};
} // namespace js
@ -696,9 +696,9 @@ class HashTableEntry
return hash > sRemovedKey;
}
HashTableEntry(const HashTableEntry &) MOZ_DELETE;
void operator=(const HashTableEntry &) MOZ_DELETE;
~HashTableEntry() MOZ_DELETE;
HashTableEntry(const HashTableEntry &) = delete;
void operator=(const HashTableEntry &) = delete;
~HashTableEntry() = delete;
public:
// NB: HashTableEntry is treated as a POD: no constructor or destructor calls.
@ -937,8 +937,8 @@ class HashTable : private AllocPolicy
bool removed;
/* Not copyable. */
Enum(const Enum &) MOZ_DELETE;
void operator=(const Enum &) MOZ_DELETE;
Enum(const Enum &) = delete;
void operator=(const Enum &) = delete;
public:
template<class Map> explicit
@ -1007,8 +1007,8 @@ class HashTable : private AllocPolicy
private:
// HashTable is not copyable or assignable
HashTable(const HashTable &) MOZ_DELETE;
void operator=(const HashTable &) MOZ_DELETE;
HashTable(const HashTable &) = delete;
void operator=(const HashTable &) = delete;
private:
static const size_t CAP_BITS = 24;

View File

@ -190,7 +190,7 @@ struct NotableClassInfo : public ClassInfo
char *className_;
private:
NotableClassInfo(const NotableClassInfo& info) MOZ_DELETE;
NotableClassInfo(const NotableClassInfo& info) = delete;
};
// Data for tracking JIT-code memory usage.
@ -314,7 +314,7 @@ struct NotableStringInfo : public StringInfo
size_t length;
private:
NotableStringInfo(const NotableStringInfo& info) MOZ_DELETE;
NotableStringInfo(const NotableStringInfo& info) = delete;
};
// This class holds information about the memory taken up by script sources
@ -375,7 +375,7 @@ struct NotableScriptSourceInfo : public ScriptSourceInfo
char *filename_;
private:
NotableScriptSourceInfo(const NotableScriptSourceInfo& info) MOZ_DELETE;
NotableScriptSourceInfo(const NotableScriptSourceInfo& info) = delete;
};
// These measurements relate directly to the JSRuntime, and not to zones and

View File

@ -492,8 +492,8 @@ class MOZ_NONHEAP_CLASS Handle : public js::HandleBase<T>
const T *ptr;
template <typename S> void operator=(S) MOZ_DELETE;
void operator=(Handle) MOZ_DELETE;
template <typename S> void operator=(S) = delete;
void operator=(Handle) = delete;
};
/*
@ -520,7 +520,7 @@ class MOZ_STACK_CLASS MutableHandle : public js::MutableHandleBase<T>
mozilla::IsSame<N, int>::value ||
mozilla::IsSame<N, long>::value,
int>::Type dummy = 0)
MOZ_DELETE;
= delete;
public:
void set(T v) {
@ -556,8 +556,8 @@ class MOZ_STACK_CLASS MutableHandle : public js::MutableHandleBase<T>
T *ptr;
template <typename S> void operator=(S v) MOZ_DELETE;
void operator=(MutableHandle other) MOZ_DELETE;
template <typename S> void operator=(S v) = delete;
void operator=(MutableHandle other) = delete;
};
} /* namespace JS */
@ -624,7 +624,7 @@ class InternalHandle<T*>
offset(uintptr_t(field))
{}
void operator=(InternalHandle<T*> other) MOZ_DELETE;
void operator=(InternalHandle<T*> other) = delete;
};
/*
@ -836,7 +836,7 @@ class MOZ_STACK_CLASS Rooted : public js::RootedBase<T>
MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER
Rooted(const Rooted &) MOZ_DELETE;
Rooted(const Rooted &) = delete;
};
} /* namespace JS */
@ -927,7 +927,7 @@ class FakeRooted : public RootedBase<T>
MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER
FakeRooted(const FakeRooted &) MOZ_DELETE;
FakeRooted(const FakeRooted &) = delete;
};
/* Interface substitute for MutableHandle<T> which is not required to point to rooted memory. */
@ -960,9 +960,9 @@ class FakeMutableHandle : public js::MutableHandleBase<T>
T *ptr;
template <typename S>
void operator=(S v) MOZ_DELETE;
void operator=(S v) = delete;
void operator=(const FakeMutableHandle<T>& other) MOZ_DELETE;
void operator=(const FakeMutableHandle<T>& other) = delete;
};
/*

View File

@ -212,8 +212,8 @@ class JS_PUBLIC_API(JSAutoStructuredCloneBuffer) {
private:
// Copy and assignment are not supported.
JSAutoStructuredCloneBuffer(const JSAutoStructuredCloneBuffer &other) MOZ_DELETE;
JSAutoStructuredCloneBuffer &operator=(const JSAutoStructuredCloneBuffer &other) MOZ_DELETE;
JSAutoStructuredCloneBuffer(const JSAutoStructuredCloneBuffer &other) = delete;
JSAutoStructuredCloneBuffer &operator=(const JSAutoStructuredCloneBuffer &other) = delete;
};
// The range of tag values the application may use for its own custom object types.

View File

@ -207,8 +207,8 @@ class Base {
virtual JSCompartment *compartment() const { return nullptr; }
private:
Base(const Base &rhs) MOZ_DELETE;
Base &operator=(const Base &rhs) MOZ_DELETE;
Base(const Base &rhs) = delete;
Base &operator=(const Base &rhs) = delete;
};
// A traits template with a specialization for each referent type that
@ -385,8 +385,8 @@ class Edge {
Node referent;
private:
Edge(const Edge &) MOZ_DELETE;
Edge &operator=(const Edge &) MOZ_DELETE;
Edge(const Edge &) = delete;
Edge &operator=(const Edge &) = delete;
};
@ -421,16 +421,16 @@ class EdgeRange {
virtual void popFront() = 0;
private:
EdgeRange(const EdgeRange &) MOZ_DELETE;
EdgeRange &operator=(const EdgeRange &) MOZ_DELETE;
EdgeRange(const EdgeRange &) = delete;
EdgeRange &operator=(const EdgeRange &) = delete;
};
// A dumb Edge concrete class. All but the most essential members have the
// default behavior.
class SimpleEdge : public Edge {
SimpleEdge(SimpleEdge &) MOZ_DELETE;
SimpleEdge &operator=(const SimpleEdge &) MOZ_DELETE;
SimpleEdge(SimpleEdge &) = delete;
SimpleEdge &operator=(const SimpleEdge &) = delete;
public:
SimpleEdge() : Edge() { }

View File

@ -39,8 +39,8 @@ class JS_PUBLIC_API(WeakMapPtr)
void *ptr;
// WeakMapPtr is neither copyable nor assignable.
WeakMapPtr(const WeakMapPtr &wmp) MOZ_DELETE;
WeakMapPtr &operator=(const WeakMapPtr &wmp) MOZ_DELETE;
WeakMapPtr(const WeakMapPtr &wmp) = delete;
WeakMapPtr &operator=(const WeakMapPtr &wmp) = delete;
};
} /* namespace JS */

View File

@ -359,7 +359,7 @@ class OrderedHashTable
private:
// Prohibit copy assignment.
Range &operator=(const Range &other) MOZ_DELETE;
Range &operator=(const Range &other) = delete;
void seek() {
while (i < ht.dataLength && Ops::isEmpty(Ops::getKey(ht.data[i].element)))
@ -667,8 +667,8 @@ class OrderedHashTable
}
// Not copyable.
OrderedHashTable &operator=(const OrderedHashTable &) MOZ_DELETE;
OrderedHashTable(const OrderedHashTable &) MOZ_DELETE;
OrderedHashTable &operator=(const OrderedHashTable &) = delete;
OrderedHashTable(const OrderedHashTable &) = delete;
};
} // namespace detail

View File

@ -1840,8 +1840,8 @@ class BackEdge {
private:
// No copy constructor or copying assignment.
BackEdge(const BackEdge &) MOZ_DELETE;
BackEdge &operator=(const BackEdge &) MOZ_DELETE;
BackEdge(const BackEdge &) = delete;
BackEdge &operator=(const BackEdge &) = delete;
};
// A path-finding handler class for use with JS::ubi::BreadthFirst.

View File

@ -167,8 +167,8 @@ class LifoAlloc
size_t curSize_;
size_t peakSize_;
void operator=(const LifoAlloc &) MOZ_DELETE;
LifoAlloc(const LifoAlloc &) MOZ_DELETE;
void operator=(const LifoAlloc &) = delete;
LifoAlloc(const LifoAlloc &) = delete;
// Return a BumpChunk that can perform an allocation of at least size |n|
// and add it to the chain appropriately.

Some files were not shown because too many files have changed in this diff Show More