Remove .gitignore do nothing is ignored.
[synfig.git] / synfig-core / trunk / src / synfig / timepointcollect.cpp
index 7d857d8..c395dfd 100644 (file)
@@ -6,6 +6,7 @@
 **
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+**     Copyright (c) 2007 Chris Moore
 **
 **     This package is free software; you can redistribute it and/or
 **     modify it under the terms of the GNU General Public License as
@@ -54,7 +55,9 @@ using namespace synfig;
 
 //! \writeme
 int
-synfig::waypoint_collect(set<Waypoint, std::less<UniqueID> >& waypoint_set,const Time& time, const etl::handle<Node>& node)
+synfig::waypoint_collect(set<Waypoint, std::less<UniqueID> >   &waypoint_set,
+                                                const Time                                                             &time,
+                                                const etl::handle<Node>                                &node)
 {
        const TimePointSet& timepoint_set(node->get_times());
 
@@ -70,9 +73,8 @@ synfig::waypoint_collect(set<Waypoint, std::less<UniqueID> >& waypoint_set,const
                const int link_count(linkable_value_node->link_count());
                int i,ret(0);
                for(i=0;i<link_count;i++)
-               {
                        ret+=waypoint_collect(waypoint_set,time,linkable_value_node->get_link(i).get());
-               }
+
                return ret;
        }
 
@@ -85,9 +87,8 @@ synfig::waypoint_collect(set<Waypoint, std::less<UniqueID> >& waypoint_set,const
                Layer::DynamicParamList::const_iterator iter;
                int ret(0);
                for(iter=dyn_param_list.begin();iter!=dyn_param_list.end();++iter)
-               {
                        ret+=waypoint_collect(waypoint_set,time,iter->second);
-               }
+
                ValueBase canvas_value(layer->get_param("canvas"));
                if(canvas_value.get_type()==ValueBase::TYPE_CANVAS)
                {
@@ -125,9 +126,8 @@ synfig::waypoint_collect(set<Waypoint, std::less<UniqueID> >& waypoint_set,const
                        // If it is already in the waypoint set, then
                        // don't bother adding it again
                        if(waypoint_set.find(waypoint)!=waypoint_set.end())
-                       {
                                return 0;
-                       }
+
                        waypoint_set.insert(waypoint);
                        return 1;
                }catch(...)