From 5079e56b0cc36737389fe2325c313668d9642354 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 27 Jul 2021 12:15:19 +0800 Subject: [PATCH] common/bloom_filter: use "using" for better readability Signed-off-by: Kefu Chai --- src/common/bloom_filter.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/bloom_filter.hpp b/src/common/bloom_filter.hpp index 024a2bd8f08..3eb83a813a3 100644 --- a/src/common/bloom_filter.hpp +++ b/src/common/bloom_filter.hpp @@ -45,8 +45,8 @@ class bloom_filter { protected: - typedef unsigned int bloom_type; - typedef unsigned char cell_type; + using bloom_type = unsigned int; + using cell_type = unsigned char; unsigned char* bit_table_; ///< pointer to bit map std::vector salt_; ///< vector of salts -- 2.47.3