summaryrefslogtreecommitdiff
path: root/src/py_commodity.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-05 02:27:08 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-05 02:27:42 -0500
commit8bd16b2e8e61f914767e3d0973e83f7326f11cbc (patch)
treeb7438f5e856b6d1be7fd1ab0c806d9eed9fa081e /src/py_commodity.cc
parent34ee358f5e16d4018adf3db5dac31d2d9c16b9f5 (diff)
downloadfork-ledger-8bd16b2e8e61f914767e3d0973e83f7326f11cbc.tar.gz
fork-ledger-8bd16b2e8e61f914767e3d0973e83f7326f11cbc.tar.bz2
fork-ledger-8bd16b2e8e61f914767e3d0973e83f7326f11cbc.zip
Simplified usage of Boost.Python in several cases
Diffstat (limited to 'src/py_commodity.cc')
-rw-r--r--src/py_commodity.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/py_commodity.cc b/src/py_commodity.cc
index c0412a45..7cd84f1c 100644
--- a/src/py_commodity.cc
+++ b/src/py_commodity.cc
@@ -130,12 +130,12 @@ void export_commodity()
class_< commodity_pool_t, boost::noncopyable > ("CommodityPool", no_init)
.add_property("null_commodity",
make_getter(&commodity_pool_t::null_commodity,
- return_value_policy<reference_existing_object>()),
+ return_internal_reference<>()),
make_setter(&commodity_pool_t::null_commodity,
with_custodian_and_ward<1, 2>()))
.add_property("default_commodity",
make_getter(&commodity_pool_t::default_commodity,
- return_value_policy<reference_existing_object>()),
+ return_internal_reference<>()),
make_setter(&commodity_pool_t::default_commodity,
with_custodian_and_ward<1, 2>()))