summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/commodity.h')
-rw-r--r--src/commodity.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commodity.h b/src/commodity.h
index a1988a3b..d521d80e 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -353,7 +353,7 @@ void put_commodity(property_tree::ptree& pt, const commodity_t& comm,
//simple struct to allow std::map to compare commodities names
struct commodity_compare {
- bool operator() (const commodity_t* lhs, const commodity_t* rhs){
+ bool operator() (const commodity_t* lhs, const commodity_t* rhs) const {
return (lhs->symbol().compare(rhs->symbol()) < 0);
}
};