diff --git a/include/cef_string_visitor.h b/include/cef_string_visitor.h index 79c9b1cbc..549371473 100644 --- a/include/cef_string_visitor.h +++ b/include/cef_string_visitor.h @@ -48,7 +48,7 @@ class CefStringVisitor : public virtual CefBase { /// // Method that will be executed. /// - /*--cef()--*/ + /*--cef(optional_param=string)--*/ virtual void Visit(const CefString& string) =0; }; diff --git a/libcef_dll/cpptoc/string_visitor_cpptoc.cc b/libcef_dll/cpptoc/string_visitor_cpptoc.cc index 9e633f5c5..f021e2681 100644 --- a/libcef_dll/cpptoc/string_visitor_cpptoc.cc +++ b/libcef_dll/cpptoc/string_visitor_cpptoc.cc @@ -22,10 +22,7 @@ void CEF_CALLBACK string_visitor_visit(struct _cef_string_visitor_t* self, DCHECK(self); if (!self) return; - // Verify param: string; type: string_byref_const - DCHECK(string); - if (!string) - return; + // Unverified params: string // Execute CefStringVisitorCppToC::Get(self)->Visit( diff --git a/libcef_dll/ctocpp/string_visitor_ctocpp.cc b/libcef_dll/ctocpp/string_visitor_ctocpp.cc index b4d754e44..528f0fcdd 100644 --- a/libcef_dll/ctocpp/string_visitor_ctocpp.cc +++ b/libcef_dll/ctocpp/string_visitor_ctocpp.cc @@ -21,10 +21,7 @@ void CefStringVisitorCToCpp::Visit(const CefString& string) { // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING - // Verify param: string; type: string_byref_const - DCHECK(!string.empty()); - if (string.empty()) - return; + // Unverified params: string // Execute struct_->visit(struct_,