diff --git a/src/oatpp/core/async/Coroutine.cpp b/src/oatpp/core/async/Coroutine.cpp index 1d44acf0..dba19f8c 100644 --- a/src/oatpp/core/async/Coroutine.cpp +++ b/src/oatpp/core/async/Coroutine.cpp @@ -174,7 +174,7 @@ Action CoroutineStarter::next(Action&& action) { Action result = m_first; m_first = nullptr; m_last = nullptr; - return std::move(result); + return result; } CoroutineStarter& CoroutineStarter::next(CoroutineStarter&& starter) { diff --git a/src/oatpp/core/async/Coroutine.hpp b/src/oatpp/core/async/Coroutine.hpp index 045d6bbe..6c67aca4 100644 --- a/src/oatpp/core/async/Coroutine.hpp +++ b/src/oatpp/core/async/Coroutine.hpp @@ -690,7 +690,7 @@ public: m_coroutine->m_callback = (FunctionPtr)(callback); Action result = m_coroutine; m_coroutine = nullptr; - return std::move(result); + return result; } diff --git a/src/oatpp/parser/json/mapping/Deserializer.cpp b/src/oatpp/parser/json/mapping/Deserializer.cpp index f6128339..6f2d5a15 100644 --- a/src/oatpp/parser/json/mapping/Deserializer.cpp +++ b/src/oatpp/parser/json/mapping/Deserializer.cpp @@ -122,7 +122,7 @@ Deserializer::AbstractObjectWrapper Deserializer::readInt32Value(oatpp::parser:: if(caret.isAtText("null", true)){ return AbstractObjectWrapper(Int32::ObjectWrapper::Class::getType()); } else { - return AbstractObjectWrapper(Int32::ObjectType::createAbstract((int)caret.parseInt()), Int32::ObjectWrapper::Class::getType()); + return AbstractObjectWrapper(Int32::ObjectType::createAbstract((const int)caret.parseInt()), Int32::ObjectWrapper::Class::getType()); } } diff --git a/src/oatpp/web/protocol/http/Http.cpp b/src/oatpp/web/protocol/http/Http.cpp index 507c5eac..0507d668 100644 --- a/src/oatpp/web/protocol/http/Http.cpp +++ b/src/oatpp/web/protocol/http/Http.cpp @@ -298,8 +298,8 @@ void Parser::parseResponseStartingLine(ResponseStartingLine& line, error = Status::CODE_400; return; } - - line.statusCode = (int)caret.parseInt(); + + line.statusCode = (v_int32)caret.parseInt(); auto descriptionLabel = caret.putLabel(); if(caret.findRN()){ diff --git a/src/oatpp/web/protocol/http/outgoing/DtoBody.cpp b/src/oatpp/web/protocol/http/outgoing/DtoBody.cpp index 70dda5da..d5556ca8 100644 --- a/src/oatpp/web/protocol/http/outgoing/DtoBody.cpp +++ b/src/oatpp/web/protocol/http/outgoing/DtoBody.cpp @@ -52,4 +52,4 @@ void DtoBody::declareHeaders(Headers& headers) noexcept { } } -}}}}} \ No newline at end of file +}}}}} diff --git a/test/oatpp/core/data/stream/ChunkedBufferTest.cpp b/test/oatpp/core/data/stream/ChunkedBufferTest.cpp index fd0fdf1a..1cd90590 100644 --- a/test/oatpp/core/data/stream/ChunkedBufferTest.cpp +++ b/test/oatpp/core/data/stream/ChunkedBufferTest.cpp @@ -116,7 +116,7 @@ void ChunkedBufferTest::onRun() { OATPP_ASSERT(oatpp::String((const char*)&wholeText->getData()[i], substringSize, false) == stream.getSubstring(i, substringSize)); } - substringSize = ChunkedBuffer::CHUNK_ENTRY_SIZE * 2; + substringSize = (v_int32) ChunkedBuffer::CHUNK_ENTRY_SIZE * 2; for(v_int32 i = 0; i < wholeText->getSize() - substringSize; i ++) { OATPP_ASSERT(oatpp::String((const char*)&wholeText->getData()[i], substringSize, false) == stream.getSubstring(i, substringSize)); } @@ -126,4 +126,4 @@ void ChunkedBufferTest::onRun() { } -}}}}} \ No newline at end of file +}}}}}