Author: mordante
Date: Thu Jun 30 22:24:51 2011
New Revision: 50101
URL: http://svn.gna.org/viewcvs/wesnoth?rev=50101&view=rev
Log:
Properly name a private variable.
Private variables should have a trailing underscore.
Modified:
trunk/src/ai/composite/engine_lua.cpp
Modified: trunk/src/ai/composite/engine_lua.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/composite/engine_lua.cpp?rev=50101&r1=50100&r2=50101&view=diff
==============================================================================
--- trunk/src/ai/composite/engine_lua.cpp (original)
+++ trunk/src/ai/composite/engine_lua.cpp Thu Jun 30 22:24:51 2011
@@ -107,10 +107,10 @@
public:
lua_sticky_candidate_action_wrapper( rca_context &context, const config
&cfg, lua_ai_context &lua_ai_ctx)
: lua_candidate_action_wrapper(context, cfg, lua_ai_ctx)
- , bound_unit()
+ , bound_unit_()
{
map_location loc(cfg["unit_x"], cfg["unit_y"]);
- bound_unit = boost::shared_ptr<unit>(new
unit(*resources::units->find(loc)));
+ bound_unit_ = boost::shared_ptr<unit>(new
unit(*resources::units->find(loc)));
}
virtual void execute() {
@@ -118,7 +118,7 @@
this->disable(); // we do not want to execute the same sticky
CA twice -> will be moved out to Lua later
}
private:
- boost::shared_ptr<unit> bound_unit;
+ boost::shared_ptr<unit> bound_unit_;
};
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits