Author: Diego Barrios Romero <[email protected]>
Date:   Wed Mar 14 20:13:05 2012 +0100

Proper inherited function overload

---

 synfig-core/src/synfig/valuenode.cpp |    6 ++++++
 synfig-core/src/synfig/valuenode.h   |    3 +++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/synfig-core/src/synfig/valuenode.cpp 
b/synfig-core/src/synfig/valuenode.cpp
index 065eb8e..b3fd5c2 100644
--- a/synfig-core/src/synfig/valuenode.cpp
+++ b/synfig-core/src/synfig/valuenode.cpp
@@ -675,6 +675,12 @@ LinkableValueNode::get_description(int index, bool 
show_exported_name)const
 }
 
 String
+LinkableValueNode::get_description(bool show_exported_name)const
+{
+       return get_description(-1, show_exported_name);
+}
+
+String
 LinkableValueNode::link_name(int i)const
 {
        Vocab vocab(get_children_vocab());
diff --git a/synfig-core/src/synfig/valuenode.h 
b/synfig-core/src/synfig/valuenode.h
index cd7ee94..c6e0385 100644
--- a/synfig-core/src/synfig/valuenode.h
+++ b/synfig-core/src/synfig/valuenode.h
@@ -396,6 +396,9 @@ public:
        ValueNode::LooseHandle get_link(const String &name)const { return 
get_link(get_link_index_from_name(name)); }
        //! Return a full description of the linked ValueNode given by the index
        String get_description(int index = -1, bool show_exported_name = 
true)const;
+       //! Return a full description of the linked ValueNode given by the index
+       //! Proper overload of the inherited function
+       String get_description(bool show_exported_name = true)const;
 
        //! Gets the children vocabulary for linkable value nodes
        virtual Vocab get_children_vocab()const;


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to