Replace constness cast
This commit is contained in:
@@ -51,9 +51,9 @@ int MTGAllCards::processConfLine(string &s, MTGCard *card, CardPrimitive * primi
|
|||||||
if (i == string::npos || 0 == i)
|
if (i == string::npos || 0 == i)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
char* key = const_cast<char*> (s.c_str()); // I know what I'm doing, let me do it
|
s[i] = '\0';
|
||||||
key[i] = 0;
|
const char* key = s.c_str();
|
||||||
char* val = key + i + 1;
|
const char* val = key+i+1;
|
||||||
|
|
||||||
switch (key[0])
|
switch (key[0])
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user