From: Carlos Lopez Date: Wed, 22 Dec 2010 16:22:44 +0000 (+0100) Subject: Use const qualifier for set_children_vocab parameter X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cdd545904107accd138c88949f2c253bee0377bb;p=synfig.git Use const qualifier for set_children_vocab parameter --- diff --git a/synfig-core/src/synfig/valuenode.cpp b/synfig-core/src/synfig/valuenode.cpp index 6e1e6a4..57b3827 100644 --- a/synfig-core/src/synfig/valuenode.cpp +++ b/synfig-core/src/synfig/valuenode.cpp @@ -713,7 +713,7 @@ LinkableValueNode::get_children_vocab()const } void -LinkableValueNode::set_children_vocab(Vocab &newvocab) +LinkableValueNode::set_children_vocab(const Vocab &newvocab) { children_vocab.assign(newvocab.begin(),newvocab.end()); } diff --git a/synfig-core/src/synfig/valuenode.h b/synfig-core/src/synfig/valuenode.h index 830cd30..076ea83 100644 --- a/synfig-core/src/synfig/valuenode.h +++ b/synfig-core/src/synfig/valuenode.h @@ -418,7 +418,7 @@ protected: virtual Vocab get_children_vocab_vfunc()const=0; //! Virtual memebr to set the children vocabulary to a given value - virtual void set_children_vocab(Vocab& rvocab); + virtual void set_children_vocab(const Vocab& rvocab); }; // END of class LinkableValueNode /*! \class ValueNodeList