@@ -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
0 commit comments