tools: Convert NULL to nullptr (see issue #2861)

This commit is contained in:
Marshall Greenblatt
2020-01-15 14:29:45 +01:00
parent ea63799c3e
commit 7a701546e1
4 changed files with 13 additions and 12 deletions

View File

@ -1586,12 +1586,13 @@ class obj_argument:
return 'CefString()'
elif type == 'refptr_same' or type == 'refptr_diff' or \
type == 'rawptr_same' or type == 'rawptr_diff':
return 'NULL'
if for_capi:
return 'NULL'
return 'nullptr'
elif type == 'ownptr_same' or type == 'ownptr_diff':
if for_capi:
return 'NULL'
else:
return 'CefOwnPtr<' + self.type.get_ptr_type() + '>()'
return 'CefOwnPtr<' + self.type.get_ptr_type() + '>()'
return ''