projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use const qualifier for set_children_vocab parameter
[synfig.git]
/
synfig-core
/
src
/
synfig
/
valuenode.cpp
diff --git
a/synfig-core/src/synfig/valuenode.cpp
b/synfig-core/src/synfig/valuenode.cpp
index
1ff921e
..
57b3827
100644
(file)
--- a/
synfig-core/src/synfig/valuenode.cpp
+++ b/
synfig-core/src/synfig/valuenode.cpp
@@
-700,8
+700,20
@@
LinkableValueNode::get_link_index_from_name(const String &name)const
throw Exception::BadLinkName(name);
}
throw Exception::BadLinkName(name);
}
+int
+LinkableValueNode::link_count()const
+{
+ return get_children_vocab().size();
+}
+
LinkableValueNode::Vocab
LinkableValueNode::get_children_vocab()const
{
return get_children_vocab_vfunc();
}
LinkableValueNode::Vocab
LinkableValueNode::get_children_vocab()const
{
return get_children_vocab_vfunc();
}
+
+void
+LinkableValueNode::set_children_vocab(const Vocab &newvocab)
+{
+ children_vocab.assign(newvocab.begin(),newvocab.end());
+}