diff --git a/Sming/SmingCore/Network/Http/HttpRequest.cpp b/Sming/SmingCore/Network/Http/HttpRequest.cpp index da535f2682..7dddbc8b93 100644 --- a/Sming/SmingCore/Network/Http/HttpRequest.cpp +++ b/Sming/SmingCore/Network/Http/HttpRequest.cpp @@ -209,7 +209,7 @@ HttpRequest* HttpRequest::setBody(const String& body) { if(written < body.length()) { debugf("HttpRequest::setBody: Unable to store the complete body"); } - stream = (ReadWriteStream*)memory; + stream = memory; return this; } diff --git a/Sming/SmingCore/Network/Http/Stream/HttpMultipartStream.cpp b/Sming/SmingCore/Network/Http/Stream/HttpMultipartStream.cpp index 01e7dc86d3..c2d8b55678 100644 --- a/Sming/SmingCore/Network/Http/Stream/HttpMultipartStream.cpp +++ b/Sming/SmingCore/Network/Http/Stream/HttpMultipartStream.cpp @@ -10,9 +10,9 @@ #include "HttpMultipartStream.h" -HttpMultipartStream::HttpMultipartStream(HttpPartProducerDelegate delegate) +HttpMultipartStream::HttpMultipartStream(HttpPartProducerDelegate delegate): producer(delegate) { - this->producer = delegate; + }