AI/Manager: clean up a few constness things
This commit is contained in:
parent
f3c569a10d
commit
18b9bf7c23
2 changed files with 8 additions and 8 deletions
|
@ -241,7 +241,7 @@ config holder::to_config() const
|
|||
}
|
||||
}
|
||||
|
||||
const std::string holder::describe_ai()
|
||||
std::string holder::describe_ai() const
|
||||
{
|
||||
if(ai_) {
|
||||
return formatter() << ai_->describe_self() << " for side " << side_ << " : ";
|
||||
|
@ -250,7 +250,7 @@ const std::string holder::describe_ai()
|
|||
}
|
||||
}
|
||||
|
||||
const std::string holder::get_ai_overview()
|
||||
std::string holder::get_ai_overview()
|
||||
{
|
||||
if (!ai_) {
|
||||
get_ai_ref();
|
||||
|
@ -294,7 +294,7 @@ const std::string holder::get_ai_overview()
|
|||
return s.str();
|
||||
}
|
||||
|
||||
const std::string holder::get_ai_structure()
|
||||
std::string holder::get_ai_structure()
|
||||
{
|
||||
if (!ai_) {
|
||||
get_ai_ref();
|
||||
|
@ -302,7 +302,7 @@ const std::string holder::get_ai_structure()
|
|||
return component_manager::print_component_tree(&*ai_,"");
|
||||
}
|
||||
|
||||
const std::string holder::get_ai_identifier() const
|
||||
std::string holder::get_ai_identifier() const
|
||||
{
|
||||
return cfg_["id"];
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ public:
|
|||
|
||||
ai_composite& get_ai_ref();
|
||||
|
||||
const std::string describe_ai();
|
||||
std::string describe_ai() const;
|
||||
|
||||
config to_config() const;
|
||||
|
||||
|
@ -64,11 +64,11 @@ public:
|
|||
|
||||
void append_ai(const config& cfg);
|
||||
|
||||
const std::string get_ai_overview();
|
||||
std::string get_ai_overview();
|
||||
|
||||
const std::string get_ai_structure();
|
||||
std::string get_ai_structure();
|
||||
|
||||
const std::string get_ai_identifier() const;
|
||||
std::string get_ai_identifier() const;
|
||||
|
||||
component* get_component(component *root, const std::string &path); // Ai debug method
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue