mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
CefPostDataWrapper now implements CefWrapper - removes duplicate Disposed logic
This commit is contained in:
@@ -8,8 +8,9 @@
|
||||
|
||||
#include "include\cef_request.h"
|
||||
|
||||
#include "Internals/TypeConversion.h"
|
||||
#include "Internals\TypeConversion.h"
|
||||
#include "CefPostDataElementWrapper.h"
|
||||
#include "CefWrapper.h"
|
||||
|
||||
using namespace System::Collections::Generic;
|
||||
using namespace System::Collections::ObjectModel;
|
||||
@@ -18,15 +19,13 @@ namespace CefSharp
|
||||
{
|
||||
namespace Internals
|
||||
{
|
||||
public ref class CefPostDataWrapper : public IPostData
|
||||
public ref class CefPostDataWrapper : public IPostData, public CefWrapper
|
||||
{
|
||||
MCefRefPtr<CefPostData> _postData;
|
||||
bool _disposed;
|
||||
|
||||
internal:
|
||||
CefPostDataWrapper(CefRefPtr<CefPostData> &postData) :
|
||||
_postData(postData),
|
||||
_disposed(false)
|
||||
_postData(postData)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -39,8 +38,6 @@ namespace CefSharp
|
||||
~CefPostDataWrapper()
|
||||
{
|
||||
this->!CefPostDataWrapper();
|
||||
|
||||
_disposed = true;
|
||||
}
|
||||
|
||||
public:
|
||||
@@ -92,14 +89,6 @@ namespace CefSharp
|
||||
{
|
||||
_postData->RemoveElements();
|
||||
}
|
||||
|
||||
virtual property bool IsDisposed
|
||||
{
|
||||
bool get()
|
||||
{
|
||||
return _disposed;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user