diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2018-10-04 15:30:07 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2018-10-08 10:55:56 +0000 |
commit | 9c9b2b3ce6ee74956cd7723b441cd2f15b2eea68 (patch) | |
tree | b62c6e54b80172393dcf4ee012cd4ba5effeaf4f | |
parent | 6346ffeacaf57b7ecf1fac700490a0250a65e4ca (diff) |
Persistence: Remove template specialization for time_t
It does not appear to be necessary, and it can conflict with other
partial specializations.
Change-Id: Ia51d967d8610ac62a9c6ebe28847589c8eb77304
Fixes: QBS-1395
Reviewed-by: Vadim Zhukov <persgray@gmail.com>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r-- | src/lib/corelib/tools/persistence.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/lib/corelib/tools/persistence.h b/src/lib/corelib/tools/persistence.h index e0469532e..2687d6120 100644 --- a/src/lib/corelib/tools/persistence.h +++ b/src/lib/corelib/tools/persistence.h @@ -50,7 +50,6 @@ #include <QtCore/qstring.h> #include <QtCore/qvariant.h> -#include <ctime> #include <memory> #include <type_traits> #include <unordered_map> @@ -278,19 +277,6 @@ template<> struct PPHelper<long> } }; -template<typename T> -struct PPHelper<T, std::enable_if_t<std::is_same<T, std::time_t>::value - && !std::is_same<T, long>::value>> -{ - static void store(std::time_t value, PersistentPool *pool) { pool->m_stream << qint64(value); } - static void load(std::time_t &value, PersistentPool *pool) - { - qint64 v; - pool->m_stream >> v; - value = static_cast<std::time_t>(v); - } -}; - template<typename T> struct PPHelper<T, std::enable_if_t<std::is_enum<T>::value>> { using U = std::underlying_type_t<T>; |