mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-16 06:06:16 +00:00
Print iterator for TYPE_DICT_KEY, not object
This commit is contained in:
@@ -218,7 +218,7 @@ print_object_xml(const torrent::Object& obj, tinyxml2::XMLPrinter* printer) {
|
|||||||
if (obj.as_dict_obj().is_list()) {
|
if (obj.as_dict_obj().is_list()) {
|
||||||
for (auto itr : obj.as_dict_obj().as_list()) {
|
for (auto itr : obj.as_dict_obj().as_list()) {
|
||||||
printer->OpenElement("value", true);
|
printer->OpenElement("value", true);
|
||||||
print_object_xml(obj.as_dict_key(), printer);
|
print_object_xml(itr, printer);
|
||||||
printer->CloseElement(true);
|
printer->CloseElement(true);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user