diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-05 02:27:08 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-05 02:27:42 -0500 |
commit | 8bd16b2e8e61f914767e3d0973e83f7326f11cbc (patch) | |
tree | b7438f5e856b6d1be7fd1ab0c806d9eed9fa081e /src/py_account.cc | |
parent | 34ee358f5e16d4018adf3db5dac31d2d9c16b9f5 (diff) | |
download | fork-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_account.cc')
-rw-r--r-- | src/py_account.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/py_account.cc b/src/py_account.cc index 3341c948..b0d0a843 100644 --- a/src/py_account.cc +++ b/src/py_account.cc @@ -172,7 +172,7 @@ void export_account() .add_property("parent", make_getter(&account_t::parent, - return_value_policy<reference_existing_object>())) + return_internal_reference<>())) .def_readwrite("name", &account_t::name) .def_readwrite("note", &account_t::note) @@ -197,7 +197,7 @@ void export_account() .def("valid", &account_t::valid) .def("__len__", accounts_len) - .def("__getitem__", accounts_getitem, return_internal_reference<1>()) + .def("__getitem__", accounts_getitem, return_internal_reference<>()) .def("__iter__", range<return_internal_reference<> > (&account_t::accounts_begin, &account_t::accounts_end)) |