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.

20 lines
771 B

  1. From 6945698778caf7cdaace9ce8dae82162dbe2ee9f Mon Sep 17 00:00:00 2001
  2. From: Johannes Morgenroth <jm@m-network.de>
  3. Date: Thu, 3 Jan 2019 07:26:51 +0100
  4. Subject: [PATCH] Use const iterator in const function of MemoryBundleSet
  5. ---
  6. ibrdtn/data/MemoryBundleSet.cpp | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. --- a/ibrdtn/data/MemoryBundleSet.cpp
  9. +++ b/ibrdtn/data/MemoryBundleSet.cpp
  10. @@ -134,7 +134,7 @@ namespace dtn
  11. // the bundles set. This happen if the MemoryBundleSet gets deserialized.
  12. if (!_consistent) return true;
  13. - bundle_set::iterator iter = _bundles.find(dtn::data::MetaBundle::create(bundle));
  14. + bundle_set::const_iterator iter = _bundles.find(dtn::data::MetaBundle::create(bundle));
  15. return (iter != _bundles.end());
  16. }