mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Use DCHECK_IS_ON() instead of !NDEBUG for debug logic (issue #1961)
This commit is contained in:
@@ -1093,7 +1093,7 @@ template<> CefRefPtr<CefTranslatorTest> CefCppToC<CefTranslatorTestCppToC,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefTranslatorTestCppToC,
|
||||
CefTranslatorTest, cef_translator_test_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -67,7 +67,7 @@ template<> CefRefPtr<CefTranslatorTestHandlerChild> CefCppToC<CefTranslatorTestH
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefTranslatorTestHandlerChildCppToC,
|
||||
CefTranslatorTestHandlerChild,
|
||||
cef_translator_test_handler_child_t>::DebugObjCt = 0;
|
||||
|
@@ -53,7 +53,7 @@ template<> CefRefPtr<CefTranslatorTestHandler> CefCppToC<CefTranslatorTestHandle
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefTranslatorTestHandlerCppToC,
|
||||
CefTranslatorTestHandler, cef_translator_test_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -157,7 +157,7 @@ template<> CefRefPtr<CefTranslatorTestObjectChildChild> CefCppToC<CefTranslatorT
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefTranslatorTestObjectChildChildCppToC,
|
||||
CefTranslatorTestObjectChildChild,
|
||||
cef_translator_test_object_child_child_t>::DebugObjCt = 0;
|
||||
|
@@ -117,7 +117,7 @@ template<> CefRefPtr<CefTranslatorTestObjectChild> CefCppToC<CefTranslatorTestOb
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefTranslatorTestObjectChildCppToC,
|
||||
CefTranslatorTestObjectChild,
|
||||
cef_translator_test_object_child_t>::DebugObjCt = 0;
|
||||
|
@@ -87,7 +87,7 @@ template<> CefRefPtr<CefTranslatorTestObject> CefCppToC<CefTranslatorTestObjectC
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefTranslatorTestObjectCppToC,
|
||||
CefTranslatorTestObject, cef_translator_test_object_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user