mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-04 13:42:48 +00:00
Bug 1156802 - Part 2: Remove all explicit move constructors, r=ehsan
This commit is contained in:
parent
da3af84697
commit
1eaae658aa
@ -45,7 +45,7 @@ public:
|
||||
: mParams(aOther.mParams)
|
||||
{}
|
||||
|
||||
explicit URLParams(const URLParams&& aOther)
|
||||
URLParams(const URLParams&& aOther)
|
||||
: mParams(Move(aOther.mParams))
|
||||
{}
|
||||
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
mValue.emplace(aValue);
|
||||
}
|
||||
|
||||
explicit Nullable(Nullable<T>&& aOther)
|
||||
Nullable(Nullable<T>&& aOther)
|
||||
: mValue(mozilla::Move(aOther.mValue))
|
||||
{}
|
||||
|
||||
|
@ -33,7 +33,7 @@ protected:
|
||||
{
|
||||
}
|
||||
|
||||
explicit TypedArrayObjectStorage(TypedArrayObjectStorage&& aOther)
|
||||
TypedArrayObjectStorage(TypedArrayObjectStorage&& aOther)
|
||||
: mTypedObj(aOther.mTypedObj),
|
||||
mWrappedObj(aOther.mWrappedObj)
|
||||
{
|
||||
@ -75,7 +75,7 @@ struct TypedArray_base : public TypedArrayObjectStorage {
|
||||
{
|
||||
}
|
||||
|
||||
explicit TypedArray_base(TypedArray_base&& aOther)
|
||||
TypedArray_base(TypedArray_base&& aOther)
|
||||
: TypedArrayObjectStorage(Move(aOther)),
|
||||
mData(aOther.mData),
|
||||
mLength(aOther.mLength),
|
||||
@ -150,7 +150,7 @@ public:
|
||||
: Base()
|
||||
{}
|
||||
|
||||
explicit TypedArray(TypedArray&& aOther)
|
||||
TypedArray(TypedArray&& aOther)
|
||||
: Base(Move(aOther))
|
||||
{
|
||||
}
|
||||
@ -204,7 +204,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
explicit ArrayBufferView_base(ArrayBufferView_base&& aOther)
|
||||
ArrayBufferView_base(ArrayBufferView_base&& aOther)
|
||||
: Base(Move(aOther)),
|
||||
mType(aOther.mType)
|
||||
{
|
||||
|
@ -705,7 +705,7 @@ class BackgroundCursorChild final
|
||||
{
|
||||
CachedResponse();
|
||||
|
||||
explicit CachedResponse(CachedResponse&& aOther);
|
||||
CachedResponse(CachedResponse&& aOther);
|
||||
|
||||
Key mKey;
|
||||
Key mObjectKey;
|
||||
|
@ -455,7 +455,7 @@ class ScriptCounts
|
||||
|
||||
inline ScriptCounts();
|
||||
inline explicit ScriptCounts(PCCountsVector&& jumpTargets);
|
||||
inline explicit ScriptCounts(ScriptCounts&& src);
|
||||
inline ScriptCounts(ScriptCounts&& src);
|
||||
inline ~ScriptCounts();
|
||||
|
||||
inline ScriptCounts& operator=(ScriptCounts&& src);
|
||||
@ -2363,7 +2363,7 @@ struct ScriptAndCounts
|
||||
ScriptCounts scriptCounts;
|
||||
|
||||
inline explicit ScriptAndCounts(JSScript* script);
|
||||
inline explicit ScriptAndCounts(ScriptAndCounts&& sac);
|
||||
inline ScriptAndCounts(ScriptAndCounts&& sac);
|
||||
|
||||
const PCCounts* maybeGetPCCounts(jsbytecode* pc) const {
|
||||
return scriptCounts.maybeGetPCCounts(script->pcToOffset(pc));
|
||||
|
@ -96,7 +96,7 @@ public:
|
||||
}
|
||||
|
||||
/* Move constructor. */
|
||||
explicit Scoped(Scoped&& aOther
|
||||
Scoped(Scoped&& aOther
|
||||
MOZ_GUARD_OBJECT_NOTIFIER_PARAM)
|
||||
: mValue(Move(aOther.mValue))
|
||||
{
|
||||
@ -209,7 +209,7 @@ struct name : public mozilla::Scoped<Traits<Type> > \
|
||||
: Super(aRhs \
|
||||
MOZ_GUARD_OBJECT_NOTIFIER_PARAM_TO_PARENT) \
|
||||
{} \
|
||||
explicit name(name&& aRhs \
|
||||
name(name&& aRhs \
|
||||
MOZ_GUARD_OBJECT_NOTIFIER_PARAM) \
|
||||
: Super(Move(aRhs) \
|
||||
MOZ_GUARD_OBJECT_NOTIFIER_PARAM_TO_PARENT) \
|
||||
|
@ -2143,7 +2143,7 @@ public:
|
||||
FallibleTArray() {}
|
||||
explicit FallibleTArray(size_type aCapacity) : base_type(aCapacity) {}
|
||||
explicit FallibleTArray(const FallibleTArray<E>& aOther) : base_type(aOther) {}
|
||||
explicit FallibleTArray(FallibleTArray<E>&& aOther)
|
||||
FallibleTArray(FallibleTArray<E>&& aOther)
|
||||
: base_type(mozilla::Move(aOther))
|
||||
{
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user