diff options
author | David Robillard <d@drobilla.net> | 2013-02-23 19:55:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-23 19:55:13 +0000 |
commit | 6b6cb56b2ceab509569bfca247f108f2be5e25c0 (patch) | |
tree | 5a46eee0c3f518fa7bb20e6a8784e5bd3ba04598 /src/client/ObjectModel.cpp | |
parent | 5a6aafff8dda9dddce479a2ad86edb933c9688c3 (diff) | |
download | ingen-6b6cb56b2ceab509569bfca247f108f2be5e25c0.tar.gz ingen-6b6cb56b2ceab509569bfca247f108f2be5e25c0.tar.bz2 ingen-6b6cb56b2ceab509569bfca247f108f2be5e25c0.zip |
Move Atom implementation out of Raul so it can depend on LV2.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5076 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/ObjectModel.cpp')
-rw-r--r-- | src/client/ObjectModel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/ObjectModel.cpp b/src/client/ObjectModel.cpp index 7e6263aa..4cef3188 100644 --- a/src/client/ObjectModel.cpp +++ b/src/client/ObjectModel.cpp @@ -47,15 +47,15 @@ ObjectModel::is_a(const Raul::URI& type) const } void -ObjectModel::on_property(const Raul::URI& uri, const Raul::Atom& value) +ObjectModel::on_property(const Raul::URI& uri, const Atom& value) { _signal_property.emit(uri, value); } -const Raul::Atom& +const Atom& ObjectModel::get_property(const Raul::URI& key) const { - static const Raul::Atom null_atom; + static const Atom null_atom; Resource::Properties::const_iterator i = properties().find(key); return (i != properties().end()) ? i->second : null_atom; } @@ -63,7 +63,7 @@ ObjectModel::get_property(const Raul::URI& key) const bool ObjectModel::polyphonic() const { - const Raul::Atom& polyphonic = get_property(_uris.ingen_polyphonic); + const Atom& polyphonic = get_property(_uris.ingen_polyphonic); return (polyphonic.is_valid() && polyphonic.get<int32_t>()); } |