** Date Started: Aug 1984
**
** This is part of the CTSim program
-** Copyright (c) 1983-2001 Kevin Rosenberg
-**
-** $Id$
+** Copyright (c) 1983-2009 Kevin Rosenberg
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
{
int id = PHM_INVALID;
- for (int i = 0; i < s_iPhantomCount; i++)
+ for (int i = 0; i < s_iPhantomCount; i++) {
if (strcasecmp (phmName, s_aszPhantomName[i]) == 0) {
id = i;
break;
}
-
- return (id);
+ }
+ return (id);
}
const char* const
PhantomElement::convertTypeToName (PhmElemType iType)
{
- static char* pszType = "Unknown";
+ static const char* pszType = "Unknown";
if (iType == PELEM_RECTANGLE)
pszType = "rectangle";