Author: silene
Date: Sun Apr 12 16:13:46 2009
New Revision: 34785
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34785&view=rev
Log:
Removed config::all_children_iterator and vconfig::all_children_iterator
default constructors.
Modified:
trunk/src/config.hpp
trunk/src/variable.cpp
trunk/src/variable.hpp
Modified: trunk/src/config.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/config.hpp?rev=34785&r1=34784&r2=34785&view=diff
==============================================================================
--- trunk/src/config.hpp (original)
+++ trunk/src/config.hpp Sun Apr 12 16:13:46 2009
@@ -266,7 +266,7 @@
typedef any_child *pointer;
typedef any_child reference;
typedef std::vector<child_pos>::const_iterator Itor;
- explicit all_children_iterator(const Itor &i = Itor()): i_(i) {}
+ explicit all_children_iterator(const Itor &i): i_(i) {}
all_children_iterator &operator++() { ++i_; return *this; }
all_children_iterator operator++(int) { return
all_children_iterator(i_++); }
Modified: trunk/src/variable.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/variable.cpp?rev=34785&r1=34784&r2=34785&view=diff
==============================================================================
--- trunk/src/variable.cpp (original)
+++ trunk/src/variable.cpp Sun Apr 12 16:13:46 2009
@@ -358,7 +358,7 @@
return t_string(val);
}
-vconfig::all_children_iterator::all_children_iterator(config::all_children_iterator
i, const config *cache_key)
+vconfig::all_children_iterator::all_children_iterator(const Itor &i, const
config *cache_key)
: i_(i), inner_index_(0), index_offset_(0), cache_key_(cache_key)
{
}
Modified: trunk/src/variable.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/variable.hpp?rev=34785&r1=34784&r2=34785&view=diff
==============================================================================
--- trunk/src/variable.hpp (original)
+++ trunk/src/variable.hpp Sun Apr 12 16:13:46 2009
@@ -77,7 +77,7 @@
typedef std::auto_ptr<value_type> pointer;
typedef value_type& reference;
typedef config::all_children_iterator Itor;
- explicit all_children_iterator(Itor i=Itor(), const config*
cache_key=NULL);
+ explicit all_children_iterator(const Itor &i, const config
*cache_key = NULL);
all_children_iterator& operator++();
all_children_iterator operator++(int);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits