packages/libs/ibrdtn/patches/020-Use-const-iterator-in-const-function-of-MemoryBundle.patch
Ilya Lipnitskiy b1cbd93bcd
treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
(cherry picked from commit 5d8d4fbbcb)
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2021-02-25 01:26:05 +08:00

20 lines
771 B
Diff

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