Make |string| parameter to CefStringVisitor::Visit optional (issue #1216).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1635 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
cf348f7b83
commit
1d798844b6
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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_,
|
||||
|
|
Loading…
Reference in New Issue