Update generated files for copyright year and bracket style

This commit is contained in:
Marshall Greenblatt
2023-01-02 17:47:15 -05:00
parent c7ffa3a122
commit d84b07a5cb
759 changed files with 12777 additions and 7149 deletions

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=ae61607070ff1973c16bc9b484a33be6b6e22883$
// $hash=6706f5bf43d926b749840fb27aa7931111f1a638$
//
#include "libcef_dll/cpptoc/cookie_visitor_cpptoc.h"
@ -30,25 +30,29 @@ int CEF_CALLBACK cookie_visitor_visit(struct _cef_cookie_visitor_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: cookie; type: struct_byref_const
DCHECK(cookie);
if (!cookie)
if (!cookie) {
return 0;
}
if (!template_util::has_valid_size(cookie)) {
NOTREACHED() << "invalid cookie->[base.]size";
return 0;
}
// Verify param: deleteCookie; type: bool_byref
DCHECK(deleteCookie);
if (!deleteCookie)
if (!deleteCookie) {
return 0;
}
// Translate param: cookie; type: struct_byref_const
CefCookie cookieObj;
if (cookie)
if (cookie) {
cookieObj.Set(*cookie, false);
}
// Translate param: deleteCookie; type: bool_byref
bool deleteCookieBool = (deleteCookie && *deleteCookie) ? true : false;
@ -57,8 +61,9 @@ int CEF_CALLBACK cookie_visitor_visit(struct _cef_cookie_visitor_t* self,
cookieObj, count, total, deleteCookieBool);
// Restore param: deleteCookie; type: bool_byref
if (deleteCookie)
if (deleteCookie) {
*deleteCookie = deleteCookieBool ? true : false;
}
// Return type: bool
return _retval;