Bug 1544216 Part 1 - use default keyword instead of empty constructors and destructors r=birtles

This commit is contained in:
longsonr 2019-04-17 23:04:53 +01:00
Родитель a14816abd2
Коммит 6956a00acf
8 изменённых файлов: 7 добавлений и 8 удалений

Просмотреть файл

@ -39,7 +39,7 @@ class SMILBoolType : public SMILType {
private:
// Private constructor: prevent instances beyond my singleton.
constexpr SMILBoolType() {}
constexpr SMILBoolType() = default;
};
} // namespace mozilla

Просмотреть файл

@ -125,7 +125,7 @@ class SMILCSSValueType : public SMILType {
private:
// Private constructor: prevent instances beyond my singleton.
constexpr SMILCSSValueType() {}
constexpr SMILCSSValueType() = default;
};
} // namespace mozilla

Просмотреть файл

@ -38,7 +38,6 @@ class SMILCompositor : public PLDHashEntryHdr {
mKey(std::move(toMove.mKey)),
mAnimationFunctions(std::move(toMove.mAnimationFunctions)),
mForceCompositing(false) {}
~SMILCompositor() {}
// PLDHashEntryHdr methods
KeyTypeRef GetKey() const { return mKey; }

Просмотреть файл

@ -39,7 +39,7 @@ class SMILEnumType : public SMILType {
private:
// Private constructor: prevent instances beyond my singleton.
constexpr SMILEnumType() {}
constexpr SMILEnumType() = default;
};
} // namespace mozilla

Просмотреть файл

@ -39,7 +39,7 @@ class SMILFloatType : public SMILType {
private:
// Private constructor: prevent instances beyond my singleton.
constexpr SMILFloatType() {}
constexpr SMILFloatType() = default;
};
} // namespace mozilla

Просмотреть файл

@ -34,7 +34,7 @@ class SMILIntegerType : public SMILType {
}
private:
constexpr SMILIntegerType() {}
constexpr SMILIntegerType() = default;
};
} // namespace mozilla

Просмотреть файл

@ -39,7 +39,7 @@ class SMILNullType : public SMILType {
private:
// Private constructor: prevent instances beyond my singleton.
constexpr SMILNullType() {}
constexpr SMILNullType() = default;
};
} // namespace mozilla

Просмотреть файл

@ -39,7 +39,7 @@ class SMILStringType : public SMILType {
private:
// Private constructor: prevent instances beyond my singleton.
constexpr SMILStringType() {}
constexpr SMILStringType() = default;
};
} // namespace mozilla