summaryrefslogtreecommitdiff
path: root/src/pool.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-03 17:43:38 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-03 17:43:38 -0400
commit27b86a5388a9b1a5d5c748fa7e6f8aa4a2f1a3f4 (patch)
treed4d4d279d70a03d8e8a0d5b39afeb34c88e87d70 /src/pool.h
parentc3cc935ba6f22f580518fd8858fbe424f2842f31 (diff)
downloadfork-ledger-27b86a5388a9b1a5d5c748fa7e6f8aa4a2f1a3f4.tar.gz
fork-ledger-27b86a5388a9b1a5d5c748fa7e6f8aa4a2f1a3f4.tar.bz2
fork-ledger-27b86a5388a9b1a5d5c748fa7e6f8aa4a2f1a3f4.zip
Avoid unnecessary object copying when using foreach
Diffstat (limited to 'src/pool.h')
-rw-r--r--src/pool.h2
1 files changed, 1 insertions, 1 deletions
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);
}