Some const correctness

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3976 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-03-09 15:20:02 +00:00
parent 3e231c9f87
commit f7186877fe
2 changed files with 2 additions and 2 deletions

View File

@ -2732,7 +2732,7 @@ const char* getName(const char *pNameID)
/*sets the tech level for the stat passed in - returns TRUE if set OK*/
BOOL setTechLevel(BASE_STATS *psStats, char *pLevel)
BOOL setTechLevel(BASE_STATS *psStats, const char *pLevel)
{
TECH_LEVEL techLevel = MAX_TECH_LEVELS;

View File

@ -268,7 +268,7 @@ extern SDWORD getCompFromName(UDWORD compType, const char *pName);
//get the component Inc for a stat based on the Resource name held in Names.txt
extern SDWORD getCompFromResName(UDWORD compType, const char *pName);
/*sets the tech level for the stat passed in */
extern BOOL setTechLevel(BASE_STATS *psStats, char *pLevel);
extern BOOL setTechLevel(BASE_STATS *psStats, const char *pLevel);
/*returns the weapon sub class based on the string name passed in */
extern WEAPON_SUBCLASS getWeaponSubClass(const char *pSubClass);
/*either gets the name associated with the resource (if one) or allocates space and copies pName*/