mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Replace NOTREACHED() with DCHECK(false) in generated files (see #3500)
Restores the old behavior of assertion in Debug build only.
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=6706f5bf43d926b749840fb27aa7931111f1a638$
|
||||
// $hash=ccecac02125e1608fe96c9646b6d9529434396e9$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/cookie_visitor_cpptoc.h"
|
||||
@ -39,7 +39,7 @@ int CEF_CALLBACK cookie_visitor_visit(struct _cef_cookie_visitor_t* self,
|
||||
return 0;
|
||||
}
|
||||
if (!template_util::has_valid_size(cookie)) {
|
||||
NOTREACHED() << "invalid cookie->[base.]size";
|
||||
DCHECK(false) << "invalid cookie->[base.]size";
|
||||
return 0;
|
||||
}
|
||||
// Verify param: deleteCookie; type: bool_byref
|
||||
@ -89,7 +89,7 @@ CefRefPtr<CefCookieVisitor> CefCppToCRefCounted<
|
||||
CefCookieVisitor,
|
||||
cef_cookie_visitor_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_cookie_visitor_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user