diff --git a/mfbt/DebugOnly.h b/mfbt/DebugOnly.h index 451d9bc3738..6bceea30250 100644 --- a/mfbt/DebugOnly.h +++ b/mfbt/DebugOnly.h @@ -64,9 +64,9 @@ public: const T& operator->() const { return value; } #else - DebugOnly() { } - MOZ_IMPLICIT DebugOnly(const T&) { } - DebugOnly(const DebugOnly&) { } + MOZ_CONSTEXPR DebugOnly() { } + MOZ_CONSTEXPR MOZ_IMPLICIT DebugOnly(const T&) { } + MOZ_CONSTEXPR DebugOnly(const DebugOnly&) { } DebugOnly& operator=(const T&) { return *this; } void operator++(int) { } void operator--(int) { } @@ -82,7 +82,7 @@ public: * generate "unused variable" warnings, exactly what it's intended * to avoid! */ - ~DebugOnly() {} + ~DebugOnly() = default; }; } // namespace mozilla