From 27b86a5388a9b1a5d5c748fa7e6f8aa4a2f1a3f4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 3 Jun 2010 17:43:38 -0400 Subject: Avoid unnecessary object copying when using foreach --- src/pool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pool.h') diff --git a/src/pool.h b/src/pool.h index 915def16..c1325944 100644 --- a/src/pool.h +++ b/src/pool.h @@ -86,7 +86,7 @@ public: virtual ~commodity_pool_t() { TRACE_DTOR(commodity_pool_t); - foreach (commodities_map::value_type pair, commodities) + foreach (commodities_map::value_type& pair, commodities) checked_delete(pair.second); } -- cgit v1.2.3