(svn r23195) -Codechange: if we really need to cast away constness, use const_cast

This commit is contained in:
rubidium
2011-11-12 08:37:12 +00:00
parent 4f87d2e88c
commit c9a7f572ec
4 changed files with 5 additions and 5 deletions

View File

@@ -511,7 +511,7 @@ static const uint AISAVE_MAX_DEPTH = 25; ///< The maximum recursive depth for it
if (!test) {
_ai_sl_byte = (byte)len;
SlObject(NULL, _ai_byte);
SlArray((void*)buf, len, SLE_CHAR);
SlArray(const_cast<char *>(buf), len, SLE_CHAR);
}
return true;
}