зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1253094, part 10 - Stop using DebugOnly for class/struct members in memory/. r=njn
MozReview-Commit-ID: LLSCgDES38Q
This commit is contained in:
Родитель
6691a673f4
Коммит
a9c7d25928
|
@ -79,7 +79,12 @@ private:
|
|||
class Singleton
|
||||
{
|
||||
public:
|
||||
Singleton() : mValue(ReplaceMalloc::GetDMDFuncs()), mInitialized(true) {}
|
||||
Singleton()
|
||||
: mValue(ReplaceMalloc::GetDMDFuncs())
|
||||
#ifdef DEBUG
|
||||
, mInitialized(true)
|
||||
#endif
|
||||
{}
|
||||
|
||||
DMDFuncs* Get()
|
||||
{
|
||||
|
@ -89,7 +94,9 @@ private:
|
|||
|
||||
private:
|
||||
DMDFuncs* mValue;
|
||||
DebugOnly<bool> mInitialized;
|
||||
#ifdef DEBUG
|
||||
bool mInitialized;
|
||||
#endif
|
||||
};
|
||||
|
||||
// This singleton pointer must be defined on the program side. In Gecko,
|
||||
|
|
Загрузка…
Ссылка в новой задаче