const_cast: convert some C-style casts and remove some redundant ones

Change-Id: I74898e791e17971a3105febe660a2140aafaece9
This commit is contained in:
Stephan Bergmann 2015-03-26 15:29:05 +01:00
parent 0b1d8eff97
commit b98a8221c7

View File

@ -88,7 +88,7 @@ class MzString
int length() const; int length() const;
const char* c_str() const; const char* c_str() const;
operator char*() { return (char *)c_str(); } operator char*() { return const_cast<char *>(c_str()); }
// If it is not possible to use the constructor with an initial // If it is not possible to use the constructor with an initial
// allocation size, use the following member to set the size. // allocation size, use the following member to set the size.