Strip trailing whitespace.

This commit is contained in:
Mark de Wever 2011-07-07 19:16:19 +00:00
parent 56a60f8c3e
commit 9af56f9ac5
6 changed files with 12 additions and 12 deletions

View file

@ -1120,7 +1120,7 @@ namespace {
}
const std::string old_host = preferences::campaign_server();
const std::string remote_port =
const std::string remote_port =
address_components.size() == 2 ? address_components[1] : lexical_cast<std::string>(default_campaignd_port);
std::string remote_host = address_components[0];
preferences::set_campaign_server(remote_address);

View file

@ -96,7 +96,7 @@ public:
cfg.add_child("state",serialized_evaluation_state_);
return cfg;
}
private:
std::string evaluation_;
boost::shared_ptr<lua_ai_action_handler> evaluation_action_handler_;
@ -121,7 +121,7 @@ public:
lua_candidate_action_wrapper::execute();
this->disable(); // we do not want to execute the same sticky CA twice -> will be moved out to Lua later
}
else
else
{
this->set_to_be_removed();
}
@ -196,7 +196,7 @@ void engine_lua::do_parse_candidate_action_from_config( rca_context &context, co
if (!lua_ai_context_) {
return;
}
candidate_action_ptr ca_ptr;
if (!cfg["sticky"].to_bool())
{
@ -206,7 +206,7 @@ void engine_lua::do_parse_candidate_action_from_config( rca_context &context, co
{
ca_ptr = candidate_action_ptr(new lua_sticky_candidate_action_wrapper(context,cfg,*lua_ai_context_));
}
if (ca_ptr) {
*b = ca_ptr;
}

View file

@ -118,9 +118,9 @@ public:
* serialize
*/
virtual config to_config() const;
virtual void set_to_be_removed();
virtual bool to_be_removed();
private:
@ -146,8 +146,8 @@ private:
std::string type_;
bool to_be_removed_;
};

View file

@ -147,7 +147,7 @@ bool candidate_action_evaluation_loop::do_play_stage()
return gamestate_changed;
}
void candidate_action_evaluation_loop::remove_completed_cas()
void candidate_action_evaluation_loop::remove_completed_cas()
{
for (std::vector<candidate_action_ptr>::iterator it = candidate_actions_.begin(); it != candidate_actions_.end(); ++it)
{

View file

@ -49,7 +49,7 @@ public:
rca_context& get_rca_context();
void create_candidate_action(std::vector<candidate_action_ptr> &candidate_actions, const config &cfg);
void remove_completed_cas();
private:

View file

@ -83,7 +83,7 @@ attack::attack(config const& cfg)
void attack::init()
{
resources::screen->invalidate(target_hex_);
resources::screen->invalidate(target_hex_);
}
attack::~attack()