Changeset 1094 for trunk/libtorrent/src/torrent/object_stream.cc
- Timestamp:
- 06/10/09 08:25:38 (3 years ago)
- Files:
-
- 1 modified
-
trunk/libtorrent/src/torrent/object_stream.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtorrent/src/torrent/object_stream.cc
r1093 r1094 97 97 Object::list_iterator itr = object->as_list().insert(object->as_list().end(), Object()); 98 98 object_read_bencode(input, &*itr, depth); 99 100 if (itr->flags() & Object::flag_unordered) 101 object->set_internal_flags(Object::flag_unordered); 99 102 } 100 103 … … 108 111 break; 109 112 110 //Object::string_type last;113 Object::string_type last; 111 114 112 115 while (input->good()) { … … 121 124 break; 122 125 123 // if (last >= str) 124 // break; 125 126 object_read_bencode(input, &object->as_map()[str], depth); 127 128 // str.swap(last); 126 if (last >= str) 127 object->set_internal_flags(Object::flag_unordered); 128 129 Object* value = &object->as_map()[str]; 130 object_read_bencode(input, value, depth); 131 132 if (value->flags() & Object::flag_unordered) 133 object->set_internal_flags(Object::flag_unordered); 134 135 str.swap(last); 129 136 } 130 137
