bug 1249728 - make the nondebug ctors for DebugOnly constexpr r=froydnj

This commit is contained in:
Trevor Saunders 2016-02-19 14:23:32 -05:00
parent b2354a3a6d
commit 9f347798a9

View File

@ -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