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_journal.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_journal.cc')
-rw-r--r-- | src/py_journal.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/py_journal.cc b/src/py_journal.cc index a9789840..9b3e7513 100644 --- a/src/py_journal.cc +++ b/src/py_journal.cc @@ -192,15 +192,15 @@ void export_journal() .def(init<string>()) .add_property("master", make_getter(&journal_t::master, - return_internal_reference<1>())) + return_internal_reference<>())) .add_property("basket", make_getter(&journal_t::basket, - return_internal_reference<1>()), + return_internal_reference<>()), make_setter(&journal_t::basket)) .add_property("was_loaded", make_getter(&journal_t::was_loaded)) .add_property("commodity_pool", make_getter(&journal_t::commodity_pool, - return_internal_reference<1>())) + return_internal_reference<>())) #if 0 .add_property("xact_finalize_hooks", make_getter(&journal_t::xact_finalize_hooks), @@ -210,10 +210,10 @@ void export_journal() .def("add_account", &journal_t::add_account) .def("remove_account", &journal_t::remove_account) - .def("find_account", py_find_account_1, return_internal_reference<1>()) - .def("find_account", py_find_account_2, return_internal_reference<1>()) + .def("find_account", py_find_account_1, return_internal_reference<>()) + .def("find_account", py_find_account_2, return_internal_reference<>()) .def("find_account_re", &journal_t::find_account_re, - return_internal_reference<1>()) + return_internal_reference<>()) .def("add_xact", &journal_t::add_xact) .def("remove_xact", &journal_t::remove_xact) |