From 6956a00acf3e891c8d545ada7ecc5054a18afbd9 Mon Sep 17 00:00:00 2001 From: longsonr Date: Wed, 17 Apr 2019 23:04:53 +0100 Subject: [PATCH] Bug 1544216 Part 1 - use default keyword instead of empty constructors and destructors r=birtles --- dom/smil/SMILBoolType.h | 2 +- dom/smil/SMILCSSValueType.h | 2 +- dom/smil/SMILCompositor.h | 1 - dom/smil/SMILEnumType.h | 2 +- dom/smil/SMILFloatType.h | 2 +- dom/smil/SMILIntegerType.h | 2 +- dom/smil/SMILNullType.h | 2 +- dom/smil/SMILStringType.h | 2 +- 8 files changed, 7 insertions(+), 8 deletions(-) diff --git a/dom/smil/SMILBoolType.h b/dom/smil/SMILBoolType.h index 1eaf5e6fc9f5..a5a6f0ea4d8f 100644 --- a/dom/smil/SMILBoolType.h +++ b/dom/smil/SMILBoolType.h @@ -39,7 +39,7 @@ class SMILBoolType : public SMILType { private: // Private constructor: prevent instances beyond my singleton. - constexpr SMILBoolType() {} + constexpr SMILBoolType() = default; }; } // namespace mozilla diff --git a/dom/smil/SMILCSSValueType.h b/dom/smil/SMILCSSValueType.h index 0af061bbc826..f1c200bf103b 100644 --- a/dom/smil/SMILCSSValueType.h +++ b/dom/smil/SMILCSSValueType.h @@ -125,7 +125,7 @@ class SMILCSSValueType : public SMILType { private: // Private constructor: prevent instances beyond my singleton. - constexpr SMILCSSValueType() {} + constexpr SMILCSSValueType() = default; }; } // namespace mozilla diff --git a/dom/smil/SMILCompositor.h b/dom/smil/SMILCompositor.h index 85e31dc9a9b5..8a165992b148 100644 --- a/dom/smil/SMILCompositor.h +++ b/dom/smil/SMILCompositor.h @@ -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; } diff --git a/dom/smil/SMILEnumType.h b/dom/smil/SMILEnumType.h index c906620334cc..957b50f460d7 100644 --- a/dom/smil/SMILEnumType.h +++ b/dom/smil/SMILEnumType.h @@ -39,7 +39,7 @@ class SMILEnumType : public SMILType { private: // Private constructor: prevent instances beyond my singleton. - constexpr SMILEnumType() {} + constexpr SMILEnumType() = default; }; } // namespace mozilla diff --git a/dom/smil/SMILFloatType.h b/dom/smil/SMILFloatType.h index 38bb3bf227da..0042e6e3497e 100644 --- a/dom/smil/SMILFloatType.h +++ b/dom/smil/SMILFloatType.h @@ -39,7 +39,7 @@ class SMILFloatType : public SMILType { private: // Private constructor: prevent instances beyond my singleton. - constexpr SMILFloatType() {} + constexpr SMILFloatType() = default; }; } // namespace mozilla diff --git a/dom/smil/SMILIntegerType.h b/dom/smil/SMILIntegerType.h index 684a538bf9e4..44776b6004a1 100644 --- a/dom/smil/SMILIntegerType.h +++ b/dom/smil/SMILIntegerType.h @@ -34,7 +34,7 @@ class SMILIntegerType : public SMILType { } private: - constexpr SMILIntegerType() {} + constexpr SMILIntegerType() = default; }; } // namespace mozilla diff --git a/dom/smil/SMILNullType.h b/dom/smil/SMILNullType.h index 2002e484c642..fcef7101095b 100644 --- a/dom/smil/SMILNullType.h +++ b/dom/smil/SMILNullType.h @@ -39,7 +39,7 @@ class SMILNullType : public SMILType { private: // Private constructor: prevent instances beyond my singleton. - constexpr SMILNullType() {} + constexpr SMILNullType() = default; }; } // namespace mozilla diff --git a/dom/smil/SMILStringType.h b/dom/smil/SMILStringType.h index d2d2f05748d8..5493db0d3268 100644 --- a/dom/smil/SMILStringType.h +++ b/dom/smil/SMILStringType.h @@ -39,7 +39,7 @@ class SMILStringType : public SMILType { private: // Private constructor: prevent instances beyond my singleton. - constexpr SMILStringType() {} + constexpr SMILStringType() = default; }; } // namespace mozilla