Codechange: Pass more std::string to StringFilter::AddLine() (#10743)

This commit is contained in:
Tyler Trahan
2023-04-30 04:23:05 -04:00
committed by GitHub
parent ee9239d293
commit ba3de0383a
10 changed files with 28 additions and 24 deletions

View File

@@ -184,10 +184,10 @@ struct Industry : IndustryPool::PoolItem<&_industry_pool> {
memset(&counts, 0, sizeof(counts));
}
inline const char *GetCachedName() const
inline const std::string &GetCachedName() const
{
if (this->cached_name.empty()) this->FillCachedName();
return this->cached_name.c_str();
return this->cached_name;
}
private: