mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 19:54:53 +00:00
Add operator so it's possible to cast from CefPostDataElementWrapper to CefPostDataElement
This commit is contained in:
@@ -109,6 +109,15 @@ namespace CefSharp
|
||||
_postDataElement->SetToBytes(val->Length, static_cast<void*>(src));
|
||||
}
|
||||
}
|
||||
|
||||
operator CefRefPtr<CefPostDataElement>()
|
||||
{
|
||||
if (this == nullptr)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
return _postDataElement.get();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user