Fix C++ warnings, better cleaning in makefiles
[ctsim.git] / libctsim / phantom.cpp
index 48123fabb0ce2b2b21e212c7e337358105a5f80f..f9bb1dbf38db3f4172c658ac99c99809f5bfddb7 100644 (file)
@@ -611,7 +611,7 @@ PhantomElement::convertNameToType (const char* const typeName)
 const char* const
 PhantomElement::convertTypeToName (PhmElemType iType)
 {
-  static char* pszType = "Unknown";
+  static const char* pszType = "Unknown";
 
   if (iType == PELEM_RECTANGLE)
     pszType = "rectangle";