diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-05 17:16:59 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-05 17:16:59 -0500 |
commit | 1bdb9330e56e49ecd660f3aafdc2d349a20e3044 (patch) | |
tree | f352e064a65bc7f3a87a634b1fcc689bb2441305 /src/py_post.cc | |
parent | 312d4c5f5339c61253e86cd9ce825370eb4be053 (diff) | |
download | fork-ledger-1bdb9330e56e49ecd660f3aafdc2d349a20e3044.tar.gz fork-ledger-1bdb9330e56e49ecd660f3aafdc2d349a20e3044.tar.bz2 fork-ledger-1bdb9330e56e49ecd660f3aafdc2d349a20e3044.zip |
Simplified passing of scope objects in Python
Diffstat (limited to 'src/py_post.cc')
-rw-r--r-- | src/py_post.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/py_post.cc b/src/py_post.cc index 64bdde83..80e7ee52 100644 --- a/src/py_post.cc +++ b/src/py_post.cc @@ -169,13 +169,13 @@ void export_post() .def("has_xdata", &post_t::has_xdata) .def("clear_xdata", &post_t::clear_xdata) .def("xdata", py_xdata, - return_value_policy<reference_existing_object>()) + return_internal_reference<>()) .def("add_to_value", &post_t::add_to_value) .def("set_reported_account", &post_t::set_reported_account) .def("reported_account", py_reported_account, - return_value_policy<reference_existing_object>()) + return_internal_reference<>()) ; } |