File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class Writer {
94
94
template <class T >
95
95
OutputVarType add_value_to_object (const std::string& _name, const T& _var,
96
96
OutputObjectType* _parent) const noexcept {
97
- cbor_encode_text_string (_parent, _name.c_str (), _name.size ());
97
+ cbor_encode_text_string (_parent-> encoder_ , _name.c_str (), _name.size ());
98
98
return new_value (_var, _parent->encoder_ );
99
99
}
100
100
@@ -105,7 +105,7 @@ class Writer {
105
105
106
106
OutputVarType add_null_to_object (const std::string& _name,
107
107
OutputObjectType* _parent) const noexcept {
108
- cbor_encode_text_string (_parent, _name.c_str (), _name.size ());
108
+ cbor_encode_text_string (_parent-> encoder_ , _name.c_str (), _name.size ());
109
109
cbor_encode_null (_parent->encoder_ );
110
110
return OutputVarType{};
111
111
}
You can’t perform that action at this time.
0 commit comments