Author: mordante
Date: Sat Jul 30 14:05:19 2011
New Revision: 50501

URL: http://svn.gna.org/viewcvs/wesnoth?rev=50501&view=rev
Log:
Strip trailing whitespace.

Modified:
    trunk/src/ai/composite/aspect.hpp
    trunk/src/ai/composite/engine_lua.cpp
    trunk/src/ai/lua/core.cpp
    trunk/src/ai/testing/stage_rca.cpp
    trunk/src/gui/auxiliary/canvas.cpp
    trunk/src/gui/widgets/settings.cpp
    trunk/src/tools/schema/tag.cpp

Modified: trunk/src/ai/composite/aspect.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/composite/aspect.hpp?rev=50501&r1=50500&r2=50501&view=diff
==============================================================================
--- trunk/src/ai/composite/aspect.hpp (original)
+++ trunk/src/ai/composite/aspect.hpp Sat Jul 30 14:05:19 2011
@@ -435,7 +435,7 @@
                handler_->handle(c, true, l_obj);
                this->value_lua_ = l_obj;
        }
-       
+
        config to_config() const
        {
                config cfg = aspect::to_config();

Modified: trunk/src/ai/composite/engine_lua.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/composite/engine_lua.cpp?rev=50501&r1=50500&r2=50501&view=diff
==============================================================================
--- trunk/src/ai/composite/engine_lua.cpp (original)
+++ trunk/src/ai/composite/engine_lua.cpp Sat Jul 30 14:05:19 2011
@@ -114,8 +114,8 @@
                map_location loc(cfg["unit_x"] - 1, cfg["unit_y"] - 1); // lua 
and c++ coords differ by one
                bound_unit_ = boost::shared_ptr<unit>(new 
unit(*resources::units->find(loc)));
        }
-       
-       virtual double evaluate() 
+
+       virtual double evaluate()
        {
                if 
(resources::units->find(bound_unit_->underlying_id()).valid())
                {
@@ -187,7 +187,7 @@
                cfg["code"].str().c_str(), this))
 {
        name_ = "lua";
-       
+
        config data(cfg.child_or_empty("data"));
        lua_ai_context_->set_persistent_data(data);
 }
@@ -275,14 +275,14 @@
 config engine_lua::to_config() const
 {
        config cfg = engine::to_config();
-       
+
        cfg["id"] = get_id();
        cfg["code"] = this->code_;
-       
+
        config data = config();
        lua_ai_context_->get_persistent_data(data);
        cfg.add_child("data") = data;
-       
+
        return cfg;
 }
 

Modified: trunk/src/ai/lua/core.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/lua/core.cpp?rev=50501&r1=50500&r2=50501&view=diff
==============================================================================
--- trunk/src/ai/lua/core.cpp (original)
+++ trunk/src/ai/lua/core.cpp Sat Jul 30 14:05:19 2011
@@ -68,22 +68,22 @@
 void lua_ai_context::get_persistent_data(config &cfg) const
 {
        int top = lua_gettop(L);
-       
+
        lua_getglobal(L, "ai");
        lua_getfield(L, -1, "data");
        luaW_toconfig(L, -1, cfg);
-       
+
        lua_settop(L, top);
 }
 
 void lua_ai_context::set_persistent_data(const config &cfg)
 {
        int top = lua_gettop(L);
-       
+
        lua_getglobal(L, "ai");
        luaW_pushconfig(L, cfg);
        lua_setfield(L, -2, "data");
-       
+
        lua_settop(L, top);
 }
 static ai::engine_lua &get_engine(lua_State *L)

Modified: trunk/src/ai/testing/stage_rca.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/testing/stage_rca.cpp?rev=50501&r1=50500&r2=50501&view=diff
==============================================================================
--- trunk/src/ai/testing/stage_rca.cpp (original)
+++ trunk/src/ai/testing/stage_rca.cpp Sat Jul 30 14:05:19 2011
@@ -151,7 +151,7 @@
 void candidate_action_evaluation_loop::remove_completed_cas()
 {
        std::vector<size_t> tbr; // indexes of elements to be removed
-       
+
        for (size_t i = 0; i != candidate_actions_.size(); ++i)
        {
                if (candidate_actions_[i]->to_be_removed())
@@ -159,34 +159,34 @@
                        tbr.push_back(i); // so we fill the array with the 
indexes
                }
        }
-       
-       for (size_t i = 0; i != tbr.size(); ++i) 
+
+       for (size_t i = 0; i != tbr.size(); ++i)
        {
                // we should go downwards, so that index shifts don't affect us
                size_t index = tbr.size() - i - 1; // downcounting for is not 
possible using unsigned counters, so we hack around
                std::string path = "stage[" + this->get_id() + 
"].candidate_action[" + candidate_actions_[tbr[index]]->get_name() + "]";
-               
+
                config cfg = config();
                cfg["path"] = path;
                cfg["action"] = "delete";
-                       
+
                ai::manager::modify_active_ai_for_side(this->get_side(), cfg); 
// we remove the CA
        }
-       
-       
+
+
 // @note: this code might be more convenient, but is obviously faulty and 
incomplete, because of iterator invalidation rules
 //       If you see a way to complete it, please contact me(Nephro).
 //     for (std::vector<candidate_action_ptr>::iterator it = 
candidate_actions_.begin(); it != candidate_actions_.end(); )
 //     {
 //             if ((*it)->to_be_removed())
 //             {
-//                     // code to remove a CA                  
+//                     // code to remove a CA
 //                     std::string path = "stage[" + this->get_id() + 
"].candidate_action[" + (*it)->get_name() + "]";
-//                     
+//
 //                     config cfg = config();
 //                     cfg["path"] = path;
 //                     cfg["action"] = "delete";
-//                     
+//
 //                     
ai::manager::modify_active_ai_for_side(this->get_side(), cfg);
 //             }
 //             else

Modified: trunk/src/gui/auxiliary/canvas.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/auxiliary/canvas.cpp?rev=50501&r1=50500&r2=50501&view=diff
==============================================================================
--- trunk/src/gui/auxiliary/canvas.cpp (original)
+++ trunk/src/gui/auxiliary/canvas.cpp Sat Jul 30 14:05:19 2011
@@ -532,11 +532,11 @@
  * @allow{type}{name="f_bool"}{value="^true|false|yes|no$"}
  * @allow{type}{name="string"}{value="^.+$"}
  * @allow{type}{name="t_string"}{value="^_.+$"}
- * @allow{type}{name="f_string"}{value="^_.+*$"} 
+ * @allow{type}{name="f_string"}{value="^_.+*$"}
  * @allow{type}{name="f_tstring"}{value="^_.+*$"}
  *
  * 
@allow{type}{name="color"}{value="^(?:2[0-5][0-5]|[01]\d\d?)\.2[0-5][0-5]|[01]\d\d?)\.2[0-5][0-5]|[01]\d\d?)\.(?:(?:2[0-5][0-5]|[01]?\d\d?))$"}
- * 
+ *
  * @allow{type}{name="font_style"}{value="^normal|bold|italic|underline*$"}
  * @allow{type}{name="v_align"}{value="^top|bottom|center$"}
  * @allow{type}{name="h_align"}{value="^left|right|center$"}

Modified: trunk/src/gui/widgets/settings.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/settings.cpp?rev=50501&r1=50500&r2=50501&view=diff
==============================================================================
--- trunk/src/gui/widgets/settings.cpp (original)
+++ trunk/src/gui/widgets/settings.cpp Sat Jul 30 14:05:19 2011
@@ -312,8 +312,8 @@
        /***** settings *****/
 /*WIKI
  * @page = GUIToolkitWML
- * @order = 1 
- * 
+ * @order = 1
+ *
  * @begin{parent}{name="gui/"}
  * @begin{tag}{name="settings"}{min="0"}{max="1"}
  * A setting section has the following variables:
@@ -502,7 +502,7 @@
  * @order = 1_widget
  *
  * == State ==
- * 
+ *
  * @begin{parent}{name="generic/"}
  * @begin{tag}{name="state"}{min=0}{max=1}
  * Definition of a state. A state contains the info what to do in a state.

Modified: trunk/src/tools/schema/tag.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/tools/schema/tag.cpp?rev=50501&r1=50500&r2=50501&view=diff
==============================================================================
--- trunk/src/tools/schema/tag.cpp (original)
+++ trunk/src/tools/schema/tag.cpp Sat Jul 30 14:05:19 2011
@@ -20,7 +20,7 @@
 
 #include "tools/schema/tag.hpp"
 
-namespace schema_generator{    
+namespace schema_generator{
 /*WIKI
  * @begin{parent}{name="wml_schema/tag/"}
  * @begin{tag}{name="key"}{min=0}{max=-1}


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to