Skip to content

Commit f119efb

Browse files
committed
try to fix formatting complaints
1 parent 6d154cc commit f119efb

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

api/include/opentelemetry/context/context.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Context
5757
// Accepts a new iterable and then returns a new context that
5858
// contains the new key and value data. It attaches the
5959
// exisiting list to the end of the new list.
60-
Context SetValue(nostd::string_view key, const ContextValue& value) const noexcept
60+
Context SetValue(nostd::string_view key, const ContextValue &value) const noexcept
6161
{
6262
Context context(key, value);
6363
context.head_->next_ = head_;
@@ -105,7 +105,7 @@ class Context
105105
if (iter == std::end(keys_and_vals))
106106
return;
107107
auto *node = this;
108-
*node = DataList(iter->first, iter->second);
108+
*node = DataList(iter->first, iter->second);
109109
for (++iter; iter != std::end(keys_and_vals); ++iter)
110110
{
111111
node->next_ = nostd::shared_ptr<DataList>(new DataList(iter->first, iter->second));
@@ -116,10 +116,8 @@ class Context
116116
// Builds a data list with just a key and value, so it will just be the head
117117
// and returns that head.
118118
DataList(nostd::string_view key, const ContextValue &value)
119-
: key_(key.begin(), key.end())
120-
, value_( value)
121-
{
122-
}
119+
: key_(key.begin(), key.end()), value_(value)
120+
{}
123121
};
124122

125123
// Head of the list which holds the keys and values of this context

api/include/opentelemetry/nostd/shared_ptr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class shared_ptr
3333
private:
3434
static constexpr size_t kAlignment = 8;
3535

36-
struct alignas(kAlignment) PlacementBuffer; // fwd.
36+
struct alignas(kAlignment) PlacementBuffer; // fwd.
3737

3838
class shared_ptr_wrapper
3939
{

0 commit comments

Comments
 (0)