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_account.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_account.cc')
-rw-r--r-- | src/py_account.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/py_account.cc b/src/py_account.cc index 8310f5ec..d1d35cda 100644 --- a/src/py_account.cc +++ b/src/py_account.cc @@ -189,9 +189,9 @@ void export_account() .def("remove_account", &account_t::remove_account) .def("find_account", &account_t::find_account, - return_value_policy<reference_existing_object>()) + return_internal_reference<>()) .def("find_account_re", &account_t::find_account, - return_value_policy<reference_existing_object>()) + return_internal_reference<>()) .def("add_post", &account_t::add_post) .def("remove_post", &account_t::remove_post) @@ -211,15 +211,15 @@ void export_account() .def("has_xdata", &account_t::has_xdata) .def("clear_xdata", &account_t::clear_xdata) .def("xdata", py_xdata, - return_value_policy<reference_existing_object>()) + return_internal_reference<>()) .def("amount", &account_t::amount) .def("total", &account_t::total) .def("self_details", &account_t::self_details, - return_value_policy<reference_existing_object>()) + return_internal_reference<>()) .def("family_details", &account_t::family_details, - return_value_policy<reference_existing_object>()) + return_internal_reference<>()) .def("has_xflags", &account_t::has_xflags) .def("children_with_flags", &account_t::children_with_flags) |