From 3bf1e6f6c114c04dcdf8dca84f287c9b8182e6e9 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 3 Jan 2020 17:41:20 +0300 Subject: [PATCH] More strict aliasing --- dbms/src/Compression/CompressionFactory.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dbms/src/Compression/CompressionFactory.h b/dbms/src/Compression/CompressionFactory.h index f3018d93071..926929abd18 100644 --- a/dbms/src/Compression/CompressionFactory.h +++ b/dbms/src/Compression/CompressionFactory.h @@ -29,7 +29,7 @@ protected: using CreatorWithType = std::function; using SimpleCreator = std::function; using CompressionCodecsDictionary = std::unordered_map; - using CompressionCodecsCodeDictionary = std::unordered_map; + using CompressionCodecsCodeDictionary = std::unordered_map; public: static CompressionCodecFactory & instance(); @@ -43,18 +43,18 @@ public: CompressionCodecPtr get(const ASTPtr & ast, DataTypePtr column_type = nullptr) const; /// Get codec by method byte (no params available) - CompressionCodecPtr get(const UInt8 byte_code) const; + CompressionCodecPtr get(const uint8_t byte_code) const; /// For backward compatibility with config settings CompressionCodecPtr get(const String & family_name, std::optional level) const; /// Register codec with parameters and column type - void registerCompressionCodecWithType(const String & family_name, std::optional byte_code, CreatorWithType creator); + void registerCompressionCodecWithType(const String & family_name, std::optional byte_code, CreatorWithType creator); /// Register codec with parameters - void registerCompressionCodec(const String & family_name, std::optional byte_code, Creator creator); + void registerCompressionCodec(const String & family_name, std::optional byte_code, Creator creator); /// Register codec without parameters - void registerSimpleCompressionCodec(const String & family_name, std::optional byte_code, SimpleCreator creator); + void registerSimpleCompressionCodec(const String & family_name, std::optional byte_code, SimpleCreator creator); protected: CompressionCodecPtr getImpl(const String & family_name, const ASTPtr & arguments, DataTypePtr column_type) const;