Module: synfig/synfig Branch: genete_paramdesc Commit: a59ba8e9d2786070fdc6adda54692ec0b7ef79c7 URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig/synfig;a=commit;h=a59ba8e9d2786070fdc6adda54692ec0b7ef79c7
Author: Carlos Lopez <[email protected]> Date: Mon Dec 13 19:33:15 2010 +0100 Do not use get_param_vocab().size() as link counter. It is too slow. --- synfig-core/src/synfig/valuenode.cpp | 8 -------- synfig-core/src/synfig/valuenode.h | 3 +++ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/synfig-core/src/synfig/valuenode.cpp b/synfig-core/src/synfig/valuenode.cpp index da9c45c..b423afc 100644 --- a/synfig-core/src/synfig/valuenode.cpp +++ b/synfig-core/src/synfig/valuenode.cpp @@ -669,11 +669,3 @@ LinkableValueNode::get_description(int index, bool show_exported_name)const return description; } -/* -int -LinkableValueNode::link_count()const -{ - Vocab ret(get_param_vocab()); - return ret.size(); -} -*/ diff --git a/synfig-core/src/synfig/valuenode.h b/synfig-core/src/synfig/valuenode.h index d0daf78..61b5d6a 100644 --- a/synfig-core/src/synfig/valuenode.h +++ b/synfig-core/src/synfig/valuenode.h @@ -337,6 +337,9 @@ public: */ typedef std::map<String,BookEntry> Book; + //! The vocabulary of the children + /*! \see synfig::Paramdesc + */ typedef ParamVocab Vocab; static Book& book(); ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Synfig-devl mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synfig-devl
