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.

22 lines
884 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. diff --git a/ibrdtn/data/MemoryBundleSet.cpp b/ibrdtn/data/MemoryBundleSet.cpp
  9. index 987342e6d..b67fdd393 100644
  10. --- a/ibrdtn/data/MemoryBundleSet.cpp
  11. +++ b/ibrdtn/data/MemoryBundleSet.cpp
  12. @@ -134,7 +134,7 @@ namespace dtn
  13. // the bundles set. This happen if the MemoryBundleSet gets deserialized.
  14. if (!_consistent) return true;
  15. - bundle_set::iterator iter = _bundles.find(dtn::data::MetaBundle::create(bundle));
  16. + bundle_set::const_iterator iter = _bundles.find(dtn::data::MetaBundle::create(bundle));
  17. return (iter != _bundles.end());
  18. }