diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-08 23:56:28 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-08 23:56:28 -0400 |
commit | fccf7e1cb5d2c0810e9b3a4c2cfb7355debbf819 (patch) | |
tree | 2704f3bfcc3c6a8b1d0ba5dc03397284f174c418 /python/py_value.cc | |
parent | f50def86c4a1203837a8f97066d9d4dfd268e0f1 (diff) | |
download | ledger-fccf7e1cb5d2c0810e9b3a4c2cfb7355debbf819.tar.gz ledger-fccf7e1cb5d2c0810e9b3a4c2cfb7355debbf819.tar.bz2 ledger-fccf7e1cb5d2c0810e9b3a4c2cfb7355debbf819.zip |
Fixes to the new Python/scope integration code.
Diffstat (limited to 'python/py_value.cc')
-rw-r--r-- | python/py_value.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/py_value.cc b/python/py_value.cc index 4962f182..ef64a04c 100644 --- a/python/py_value.cc +++ b/python/py_value.cc @@ -40,10 +40,10 @@ using namespace boost::python; BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(value_overloads, value, 0, 2) namespace { - expr_t py_value_getattr(value_t& value, const string& name) + expr_t py_value_getattr(const value_t& value, const string& name) { if (value.is_pointer()) { - if (scope_t * scope = value.as_pointer_lval<scope_t>()) + if (scope_t * scope = value.as_pointer<scope_t>()) return expr_t(scope->lookup(name), scope); } throw_(value_error, "Cannot lookup attributes in " << value.label()); |