summaryrefslogtreecommitdiff
path: root/lib/block_props.cpp
diff options
context:
space:
mode:
authorJosh Blum2013-05-27 20:13:34 -0700
committerJosh Blum2013-05-27 20:13:34 -0700
commitc0aaedb595a4e04726c27c54560fd40394d0bac8 (patch)
treef7f7343f2220b1a04d87008a46b7c097fcd53d8e /lib/block_props.cpp
parent22d99448cb680652c02464e2aa8b0c043c6ee72b (diff)
downloadsandhi-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.cpp8
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)