const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I74898e791e17971a3105febe660a2140aafaece9
This commit is contained in:
parent
0b1d8eff97
commit
b98a8221c7
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user