From defda0ff16af2059289f1cd98d992646d6e3b74e Mon Sep 17 00:00:00 2001 From: Ferry Huberts Date: Wed, 6 Sep 2023 08:42:37 +0200 Subject: [PATCH] Use auto for 2 locals Signed-off-by: Ferry Huberts --- src/oatpp/parser/json/mapping/Deserializer.cpp | 2 +- src/oatpp/parser/json/mapping/Serializer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/oatpp/parser/json/mapping/Deserializer.cpp b/src/oatpp/parser/json/mapping/Deserializer.cpp index 9c6c1c67..f9f9f202 100644 --- a/src/oatpp/parser/json/mapping/Deserializer.cpp +++ b/src/oatpp/parser/json/mapping/Deserializer.cpp @@ -494,7 +494,7 @@ oatpp::Void Deserializer::deserializeObject(Deserializer* deserializer, parser:: } oatpp::Void Deserializer::deserialize(parser::Caret& caret, const Type* const type) { - v_uint32 id = static_cast(type->classId.id); + auto id = static_cast(type->classId.id); auto& method = m_methods[id]; if(method) { return (*method)(this, caret, type); diff --git a/src/oatpp/parser/json/mapping/Serializer.cpp b/src/oatpp/parser/json/mapping/Serializer.cpp index a4e638af..c0df709c 100644 --- a/src/oatpp/parser/json/mapping/Serializer.cpp +++ b/src/oatpp/parser/json/mapping/Serializer.cpp @@ -259,7 +259,7 @@ void Serializer::serializeObject(Serializer* serializer, void Serializer::serialize(data::stream::ConsistentOutputStream* stream, const oatpp::Void& polymorph) { - v_uint32 id = static_cast(polymorph.getValueType()->classId.id); + auto id = static_cast(polymorph.getValueType()->classId.id); auto& method = m_methods[id]; if(method) { (*method)(this, stream, polymorph);