]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/bloom_filter: use "using" for better readability
authorKefu Chai <kchai@redhat.com>
Tue, 27 Jul 2021 04:15:19 +0000 (12:15 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 27 Jul 2021 12:03:32 +0000 (20:03 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/bloom_filter.hpp

index 024a2bd8f08674f1b29511cc1e6f64e07c18f5e4..3eb83a813a3467839fc6638d0db94d2de984ec33 100644 (file)
@@ -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<bloom_type> salt_;     ///< vector of salts