You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ya...@apache.org on 2022/06/14 01:18:20 UTC

[incubator-doris] branch master updated: [build] use inline to replace static (#10087)

This is an automated email from the ASF dual-hosted git repository.

yangzhg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new e58cac1f00 [build] use inline to replace static (#10087)
e58cac1f00 is described below

commit e58cac1f00860f4414a028a783dbe1a98319f2fd
Author: Pxl <95...@qq.com>
AuthorDate: Tue Jun 14 09:18:15 2022 +0800

    [build] use inline to replace static (#10087)
---
 be/src/olap/rowset/segment_v2/bitshuffle_page.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/be/src/olap/rowset/segment_v2/bitshuffle_page.h b/be/src/olap/rowset/segment_v2/bitshuffle_page.h
index 4a6f3d4052..234bda61b6 100644
--- a/be/src/olap/rowset/segment_v2/bitshuffle_page.h
+++ b/be/src/olap/rowset/segment_v2/bitshuffle_page.h
@@ -219,7 +219,7 @@ private:
         return _buffer.build();
     }
 
-    typedef typename TypeTraits<Type>::CppType CppType;
+    using CppType = typename TypeTraits<Type>::CppType;
 
     CppType cell(int idx) const {
         DCHECK_GE(idx, 0);
@@ -239,7 +239,7 @@ private:
     CppType _last_value;
 };
 
-static Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements,
+inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements,
                                        size_t& compressed_size, size_t& num_element_after_padding,
                                        int& size_of_element) {
     if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) {
@@ -425,7 +425,7 @@ private:
         memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE);
     }
 
-    typedef typename TypeTraits<Type>::CppType CppType;
+    using CppType = typename TypeTraits<Type>::CppType;
 
     enum { SIZE_OF_TYPE = TypeTraits<Type>::size };
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org