added missing const for char* arguments

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2001-11-26 07:33:30 +00:00
parent 9832ce0bcc
commit bbd08c6a95
3 changed files with 11 additions and 10 deletions

View File

@@ -150,7 +150,7 @@ void ResetTopicCounter(void)
static char *forceTopicName = NULL;
void ForceTopicName(char *name)
void ForceTopicName(const char *name)
{
if (forceTopicName)
delete[] forceTopicName;
@@ -1463,7 +1463,7 @@ char *ParseMultifieldString(char *allFields, int *pos)
*
*/
ColourTableEntry::ColourTableEntry(char *theName, unsigned int r, unsigned int g, unsigned int b)
ColourTableEntry::ColourTableEntry(const char *theName, unsigned int r, unsigned int g, unsigned int b)
{
name = copystring(theName);
red = r;
@@ -1476,7 +1476,7 @@ ColourTableEntry::~ColourTableEntry(void)
delete[] name;
}
void AddColour(char *theName, unsigned int r, unsigned int g, unsigned int b)
void AddColour(const char *theName, unsigned int r, unsigned int g, unsigned int b)
{
wxNode *node = ColourTable.Find(theName);
if (node)