diff options
author | Josh Blum | 2013-05-27 20:13:34 -0700 |
---|---|---|
committer | Josh Blum | 2013-05-27 20:13:34 -0700 |
commit | c0aaedb595a4e04726c27c54560fd40394d0bac8 (patch) | |
tree | f7f7343f2220b1a04d87008a46b7c097fcd53d8e /lib/block_props.cpp | |
parent | 22d99448cb680652c02464e2aa8b0c043c6ee72b (diff) | |
download | sandhi-c0aaedb595a4e04726c27c54560fd40394d0bac8.tar.gz sandhi-c0aaedb595a4e04726c27c54560fd40394d0bac8.tar.bz2 sandhi-c0aaedb595a4e04726c27c54560fd40394d0bac8.zip |
gras: simplify registration object passing
Diffstat (limited to 'lib/block_props.cpp')
-rw-r--r-- | lib/block_props.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/block_props.cpp b/lib/block_props.cpp index d799805..f32dc69 100644 --- a/lib/block_props.cpp +++ b/lib/block_props.cpp @@ -97,14 +97,14 @@ static PMCC prop_access_dispatcher(ActorType &actor, const std::string &key, con return receiver.message.value; } -void Block::_register_getter(const std::string &key, PMCC pr) +void Block::_register_getter(const std::string &key, void *pr) { - (*this)->block->getter_registry[key] = pr.as<PropertyRegistrySptr>(); + (*this)->block->getter_registry[key].reset(reinterpret_cast<PropertyRegistry *>(pr)); } -void Block::_register_setter(const std::string &key, PMCC pr) +void Block::_register_setter(const std::string &key, void *pr) { - (*this)->block->setter_registry[key] = pr.as<PropertyRegistrySptr>(); + (*this)->block->setter_registry[key].reset(reinterpret_cast<PropertyRegistry *>(pr)); } void Block::_set_property(const std::string &key, const PMCC &value) |