rename to _tempObject and give type void * so it can be used for any object/array

This commit is contained in:
Me No Dev
2016-06-16 23:24:09 +03:00
parent 41228cb246
commit 798fcc3c05
2 changed files with 2 additions and 2 deletions

View File

@@ -160,7 +160,7 @@ class AsyncWebServerRequest {
public:
File _tempFile;
uint8_t *_tempBuffer;
void *_tempObject;
AsyncWebServerRequest *next;
AsyncWebServerRequest(AsyncWebServer*, AsyncClient*);

View File

@@ -63,7 +63,7 @@ AsyncWebServerRequest::AsyncWebServerRequest(AsyncWebServer* s, AsyncClient* c)
, _itemBuffer(0)
, _itemBufferIndex(0)
, _itemIsFile(false)
, _tempBuffer(NULL)
, _tempObject(NULL)
, next(NULL)
{
c->onError([](void *r, AsyncClient* c, int8_t error){ AsyncWebServerRequest *req = (AsyncWebServerRequest*)r; req->_onError(error); }, this);