You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.4 KiB

  1. --- a/src/routing/SchedulingBundleIndex.cpp
  2. +++ b/src/routing/SchedulingBundleIndex.cpp
  3. @@ -28,7 +28,7 @@ namespace dtn
  4. void SchedulingBundleIndex::remove(const dtn::data::BundleID &id)
  5. {
  6. ibrcommon::MutexLock l(_index_mutex);
  7. - for (priority_index::const_iterator iter = _priority_index.begin(); iter != _priority_index.end(); ++iter)
  8. + for (priority_index::iterator iter = _priority_index.begin(); iter != _priority_index.end(); ++iter)
  9. {
  10. const dtn::data::MetaBundle &b = (*iter);
  11. if (id == (const dtn::data::BundleID&)b) {
  12. --- a/src/storage/MemoryBundleStorage.cpp
  13. +++ b/src/storage/MemoryBundleStorage.cpp
  14. @@ -217,7 +217,7 @@ namespace dtn
  15. ibrcommon::MutexLock l(_bundleslock);
  16. // search for the bundle in the bundle list
  17. - const bundle_list::const_iterator iter = find(_bundles.begin(), _bundles.end(), id);
  18. + const bundle_list::iterator iter = find(_bundles.begin(), _bundles.end(), id);
  19. // if no bundle was found throw an exception
  20. if (iter == _bundles.end()) throw NoBundleFoundException();
  21. --- a/src/storage/MetaStorage.cpp
  22. +++ b/src/storage/MetaStorage.cpp
  23. @@ -66,7 +66,7 @@ namespace dtn
  24. {
  25. std::set<dtn::data::EID> ret;
  26. - for (dtn::data::BundleList::const_iterator iter = begin(); iter != end(); ++iter)
  27. + for (const_iterator iter = begin(); iter != end(); ++iter)
  28. {
  29. const dtn::data::MetaBundle &bundle = (*iter);