From 2c97116d398010c056c4963dfa0d8187ecfe4306 Mon Sep 17 00:00:00 2001 From: lganzzzo Date: Tue, 7 Aug 2018 02:15:08 +0300 Subject: [PATCH] Renamed CRC32.hpp to CRC. Better static_wrapper_cast --- algorithm/{CRC32.cpp => CRC.cpp} | 2 +- algorithm/{CRC32.hpp => CRC.hpp} | 6 +++--- core/data/mapping/type/Type.hpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename algorithm/{CRC32.cpp => CRC.cpp} (98%) rename algorithm/{CRC32.hpp => CRC.hpp} (93%) diff --git a/algorithm/CRC32.cpp b/algorithm/CRC.cpp similarity index 98% rename from algorithm/CRC32.cpp rename to algorithm/CRC.cpp index b868128d..ec76e2cf 100644 --- a/algorithm/CRC32.cpp +++ b/algorithm/CRC.cpp @@ -22,7 +22,7 @@ * ***************************************************************************/ -#include "CRC32.hpp" +#include "CRC.hpp" namespace oatpp { namespace algorithm { diff --git a/algorithm/CRC32.hpp b/algorithm/CRC.hpp similarity index 93% rename from algorithm/CRC32.hpp rename to algorithm/CRC.hpp index b962a92a..b4c29a47 100644 --- a/algorithm/CRC32.hpp +++ b/algorithm/CRC.hpp @@ -22,8 +22,8 @@ * ***************************************************************************/ -#ifndef oatpp_algorithm_CRC32_hpp -#define oatpp_algorithm_CRC32_hpp +#ifndef oatpp_algorithm_CRC_hpp +#define oatpp_algorithm_CRC_hpp #include "oatpp/core/base/Environment.hpp" @@ -49,4 +49,4 @@ public: }} -#endif /* oatpp_algorithm_CRC32_hpp */ +#endif /* oatpp_algorithm_CRC_hpp */ diff --git a/core/data/mapping/type/Type.hpp b/core/data/mapping/type/Type.hpp index ff33b16f..81b8cee1 100644 --- a/core/data/mapping/type/Type.hpp +++ b/core/data/mapping/type/Type.hpp @@ -140,7 +140,7 @@ public: template inline PolymorphicWrapper static_wrapper_cast(const F& from){ - return PolymorphicWrapper(std::static_pointer_cast(from.getPtr())); + return PolymorphicWrapper(std::static_pointer_cast(from.getPtr()), from.valueType); } template