mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix unreferenced variable warning (issue #2090)
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user