mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1249728 - make the nondebug ctors for DebugOnly constexpr r=froydnj
This commit is contained in:
parent
b2354a3a6d
commit
9f347798a9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user