You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2019/01/29 01:51:31 UTC
[trafficserver] branch master updated: Clean up StrHeapDesc
constructor.
This is an automated email from the ASF dual-hosted git repository.
amc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 54fb242 Clean up StrHeapDesc constructor.
54fb242 is described below
commit 54fb242cb6a01ea21d3c0393d3296d2c0b8a12cf
Author: Alan M. Carroll <am...@apache.org>
AuthorDate: Mon Jan 28 13:10:22 2019 -0600
Clean up StrHeapDesc constructor.
---
proxy/hdrs/HdrHeap.cc | 7 -------
proxy/hdrs/HdrHeap.h | 9 +++++----
2 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/proxy/hdrs/HdrHeap.cc b/proxy/hdrs/HdrHeap.cc
index 27d4b3a..be065a2 100644
--- a/proxy/hdrs/HdrHeap.cc
+++ b/proxy/hdrs/HdrHeap.cc
@@ -1170,13 +1170,6 @@ HdrStrHeap::expand(char *ptr, int old_size, int new_size)
}
}
-StrHeapDesc::StrHeapDesc()
-{
- m_heap_start = nullptr;
- m_heap_len = 0;
- m_locked = false;
-}
-
struct StrTest {
char *ptr;
int len;
diff --git a/proxy/hdrs/HdrHeap.h b/proxy/hdrs/HdrHeap.h
index c1fe0b2..9737782 100644
--- a/proxy/hdrs/HdrHeap.h
+++ b/proxy/hdrs/HdrHeap.h
@@ -158,11 +158,12 @@ public:
};
struct StrHeapDesc {
- StrHeapDesc();
+ StrHeapDesc() = default;
+
Ptr<RefCountObj> m_ref_count_ptr;
- char *m_heap_start;
- int32_t m_heap_len;
- bool m_locked;
+ char *m_heap_start = nullptr;
+ int32_t m_heap_len = 0;
+ bool m_locked = false;
bool
contains(const char *str) const