Skip to content

Commit 932949d

Browse files
committed
Fix reorder error in maintainer mode
1 parent f706996 commit 932949d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/include/opentelemetry/context/context.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ class Context
9494
{
9595
char *key_ = nullptr;
9696

97-
nostd::shared_ptr<DataList> next_;
97+
nostd::shared_ptr<DataList> next_ = nullptr;
9898

9999
size_t key_length_ = 0UL;
100100

101101
ContextValue value_;
102102

103-
DataList() : next_{nullptr} {}
103+
DataList() = default;
104104

105105
// Builds a data list off of a key and value iterable and returns the head
106106
template <class T>
@@ -136,8 +136,8 @@ class Context
136136

137137
DataList(const DataList &other)
138138
: key_(new char[other.key_length_]),
139-
key_length_(other.key_length_),
140139
next_(other.next_),
140+
key_length_(other.key_length_),
141141
value_(other.value_)
142142
{
143143
memcpy(key_, other.key_, other.key_length_ * sizeof(char));

0 commit comments

Comments
 (0)