Skip to content

Commit 1ffc1ca

Browse files
committed
Fixes msgpack missing parameter comments, error message
1 parent 7bf0a00 commit 1ffc1ca

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/rfl/msgpack/Writer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ Writer::OutputArrayType Writer::add_array_to_object(
4646
}
4747

4848
Writer::OutputObjectType Writer::add_object_to_array(const size_t _size,
49-
OutputArrayType*) const {
49+
OutputArrayType* /*_parent*/) const {
5050
return new_object(_size);
5151
}
5252

5353
Writer::OutputObjectType Writer::add_object_to_object(
5454
const std::string_view& _name, const size_t _size,
55-
OutputObjectType*) const {
55+
OutputObjectType* /*_parent*/) const {
5656
auto err = msgpack_pack_str(pk_, _name.size());
5757
if (err) {
5858
throw std::runtime_error("Could not pack field name: '" +
@@ -66,7 +66,7 @@ Writer::OutputObjectType Writer::add_object_to_object(
6666
return new_object(_size);
6767
}
6868

69-
Writer::OutputVarType Writer::add_null_to_array(OutputArrayType*) const {
69+
Writer::OutputVarType Writer::add_null_to_array(OutputArrayType* /*_parent*/) const {
7070
const auto err = msgpack_pack_nil(pk_);
7171
if (err) {
7272
throw std::runtime_error("Could not add nil to array.");
@@ -110,7 +110,7 @@ Writer::OutputArrayType Writer::new_array(const size_t _size) const {
110110
Writer::OutputObjectType Writer::new_object(const size_t _size) const {
111111
const auto err = msgpack_pack_map(pk_, _size);
112112
if (err) {
113-
throw std::runtime_error("Could not pack array.");
113+
throw std::runtime_error("Could not pack object.");
114114
}
115115
return OutputObjectType{};
116116
}

0 commit comments

Comments
 (0)