Add operator so it's possible to cast from CefPostDataElementWrapper to CefPostDataElement

This commit is contained in:
amaitland
2015-11-29 07:05:01 +10:00
parent 994f94a415
commit de53893c19
@@ -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();
}
};
}
}