Fix unreferenced variable warning (issue #2090)
This commit is contained in:
parent
54424d0edc
commit
43001c0a94
|
@ -147,9 +147,11 @@ StructName* CefCToCppScoped<ClassName, BaseName, StructName>::UnwrapOwn(
|
||||||
|
|
||||||
StructName* orig_struct = wrapperStruct->struct_;
|
StructName* orig_struct = wrapperStruct->struct_;
|
||||||
|
|
||||||
|
#if DCHECK_IS_ON()
|
||||||
// We should own the object currently.
|
// We should own the object currently.
|
||||||
cef_base_scoped_t* base = reinterpret_cast<cef_base_scoped_t*>(orig_struct);
|
cef_base_scoped_t* base = reinterpret_cast<cef_base_scoped_t*>(orig_struct);
|
||||||
DCHECK(base && base->del);
|
DCHECK(base && base->del);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Don't delete the original object when the wrapper is deleted.
|
// Don't delete the original object when the wrapper is deleted.
|
||||||
wrapperStruct->struct_ = NULL;
|
wrapperStruct->struct_ = NULL;
|
||||||
|
|
Loading…
Reference in New Issue