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:
@@ -121,7 +121,7 @@ template<> CefRefPtr<CefBoxLayout> CefCppToC<CefBoxLayoutCppToC, CefBoxLayout,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefBoxLayoutCppToC, CefBoxLayout,
|
||||
cef_box_layout_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -967,7 +967,7 @@ template<> CefRefPtr<CefBrowserView> CefCppToC<CefBrowserViewCppToC,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefBrowserViewCppToC, CefBrowserView,
|
||||
cef_browser_view_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -302,7 +302,7 @@ template<> CefRefPtr<CefBrowserViewDelegate> CefCppToC<CefBrowserViewDelegateCpp
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefBrowserViewDelegateCppToC,
|
||||
CefBrowserViewDelegate, cef_browser_view_delegate_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -966,7 +966,7 @@ template<> CefRefPtr<CefButton> CefCppToC<CefButtonCppToC, CefButton,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefButtonCppToC, CefButton,
|
||||
cef_button_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -200,7 +200,7 @@ template<> CefRefPtr<CefButtonDelegate> CefCppToC<CefButtonDelegateCppToC,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefButtonDelegateCppToC,
|
||||
CefButtonDelegate, cef_button_delegate_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -255,7 +255,7 @@ template<> CefRefPtr<CefDisplay> CefCppToC<CefDisplayCppToC, CefDisplay,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefDisplayCppToC, CefDisplay,
|
||||
cef_display_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -83,7 +83,7 @@ template<> CefRefPtr<CefFillLayout> CefCppToC<CefFillLayoutCppToC,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefFillLayoutCppToC, CefFillLayout,
|
||||
cef_fill_layout_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -1208,7 +1208,7 @@ template<> CefRefPtr<CefLabelButton> CefCppToC<CefLabelButtonCppToC,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefLabelButtonCppToC, CefLabelButton,
|
||||
cef_label_button_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -86,7 +86,7 @@ template<> CefRefPtr<CefLayout> CefCppToC<CefLayoutCppToC, CefLayout,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefLayoutCppToC, CefLayout,
|
||||
cef_layout_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -1243,7 +1243,7 @@ template<> CefRefPtr<CefMenuButton> CefCppToC<CefMenuButtonCppToC,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefMenuButtonCppToC, CefMenuButton,
|
||||
cef_menu_button_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -229,7 +229,7 @@ template<> CefRefPtr<CefMenuButtonDelegate> CefCppToC<CefMenuButtonDelegateCppTo
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefMenuButtonDelegateCppToC,
|
||||
CefMenuButtonDelegate, cef_menu_button_delegate_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -1104,7 +1104,7 @@ template<> CefRefPtr<CefPanel> CefCppToC<CefPanelCppToC, CefPanel,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefPanelCppToC, CefPanel,
|
||||
cef_panel_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -181,7 +181,7 @@ template<> CefRefPtr<CefPanelDelegate> CefCppToC<CefPanelDelegateCppToC,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefPanelDelegateCppToC,
|
||||
CefPanelDelegate, cef_panel_delegate_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -1026,7 +1026,7 @@ template<> CefRefPtr<CefScrollView> CefCppToC<CefScrollViewCppToC,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefScrollViewCppToC, CefScrollView,
|
||||
cef_scroll_view_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -1422,7 +1422,7 @@ template<> CefRefPtr<CefTextfield> CefCppToC<CefTextfieldCppToC, CefTextfield,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefTextfieldCppToC, CefTextfield,
|
||||
cef_textfield_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -228,7 +228,7 @@ template<> CefRefPtr<CefTextfieldDelegate> CefCppToC<CefTextfieldDelegateCppToC,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefTextfieldDelegateCppToC,
|
||||
CefTextfieldDelegate, cef_textfield_delegate_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -860,7 +860,7 @@ template<> CefRefPtr<CefView> CefCppToC<CefViewCppToC, CefView,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefViewCppToC, CefView,
|
||||
cef_view_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -198,7 +198,7 @@ template<> CefRefPtr<CefViewDelegate> CefCppToC<CefViewDelegateCppToC,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefViewDelegateCppToC,
|
||||
CefViewDelegate, cef_view_delegate_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -1622,7 +1622,7 @@ template<> CefRefPtr<CefWindow> CefCppToC<CefWindowCppToC, CefWindow,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefWindowCppToC, CefWindow,
|
||||
cef_window_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
@@ -320,7 +320,7 @@ template<> CefRefPtr<CefWindowDelegate> CefCppToC<CefWindowDelegateCppToC,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToC<CefWindowDelegateCppToC,
|
||||
CefWindowDelegate, cef_window_delegate_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user