Rename get_param_vocab to get_children_vocab and use a wrapper for the pure virtual...
[synfig.git] / synfig-core / src / synfig / valuenode_timestring.cpp
index a0808aa..bdc140d 100644 (file)
@@ -62,8 +62,6 @@ ValueNode_TimeString::ValueNode_TimeString(const ValueBase &value):
        default:
                throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
        }
-
-       DCAST_HACK_ENABLE();
 }
 
 LinkableValueNode*
@@ -187,3 +185,16 @@ ValueNode_TimeString::check_type(ValueBase::Type type)
        return
                type==ValueBase::TYPE_STRING;
 }
+
+LinkableValueNode::Vocab
+ValueNode_TimeString::get_children_vocab_vfunc()const
+{
+       LinkableValueNode::Vocab ret;
+
+       ret.push_back(ParamDesc(ValueBase(),"time")
+               .set_local_name(_("Time"))
+               .set_description(_("The time that is converted to string"))
+       );
+
+       return ret;
+}