diff options
author | truebrain <truebrain@openttd.org> | 2009-01-17 15:31:30 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2009-01-17 15:31:30 +0000 |
commit | eb0d82ada08a5a1f1c229acba8dcee0278603b89 (patch) | |
tree | 14e7ce689d02dc05c06feede936f8d1c1bdb8c02 /src/ai/api/ai_company.hpp | |
parent | ef75a7af90d9ed2fbcb13d7511d93ff44f4c0cf8 (diff) | |
download | openttd-eb0d82ada08a5a1f1c229acba8dcee0278603b89.tar.xz |
(svn r15123) -Fix [NoAI]: 'const char *' implies that the return value should not be free'd, which is should .. so make them 'char *'
Diffstat (limited to 'src/ai/api/ai_company.hpp')
-rw-r--r-- | src/ai/api/ai_company.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ai/api/ai_company.hpp b/src/ai/api/ai_company.hpp index bc08e9630..9a3e324ea 100644 --- a/src/ai/api/ai_company.hpp +++ b/src/ai/api/ai_company.hpp @@ -61,7 +61,7 @@ public: /** * Obsolete, use AICompany::GetName instead. */ - static const char *GetCompanyName(CompanyID company); + static char *GetCompanyName(CompanyID company); /** * Get the name of the given company. @@ -69,7 +69,7 @@ public: * @pre ResolveCompanyID(company) != COMPANY_INVALID * @return The name of the given company. */ - static const char *GetName(CompanyID company); + static char *GetName(CompanyID company); /** * Set the name of your president. @@ -86,7 +86,7 @@ public: * @pre ResolveCompanyID(company) != COMPANY_INVALID * @return The name of the president of the given company. */ - static const char *GetPresidentName(CompanyID company); + static char *GetPresidentName(CompanyID company); /** * Sets the amount to loan. |