File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
api/include/opentelemetry/context Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,13 @@ class Context
94
94
{
95
95
char *key_ = nullptr ;
96
96
97
- nostd::shared_ptr<DataList> next_;
97
+ nostd::shared_ptr<DataList> next_ = nullptr ;
98
98
99
99
size_t key_length_ = 0UL ;
100
100
101
101
ContextValue value_;
102
102
103
- DataList () : next_{ nullptr } {}
103
+ DataList () = default ;
104
104
105
105
// Builds a data list off of a key and value iterable and returns the head
106
106
template <class T >
@@ -136,8 +136,8 @@ class Context
136
136
137
137
DataList (const DataList &other)
138
138
: key_(new char [other.key_length_]),
139
- key_length_ (other.key_length_),
140
139
next_ (other.next_),
140
+ key_length_(other.key_length_),
141
141
value_(other.value_)
142
142
{
143
143
memcpy (key_, other.key_ , other.key_length_ * sizeof (char ));
You can’t perform that action at this time.
0 commit comments