diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:29:05 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:31 +0100 |
commit | b98a8221c70474687c4da8c60f2892ce9a792e93 (patch) | |
tree | a4e0ef48099377d7a290595390f6f2366f550311 /hwpfilter | |
parent | 0b1d8eff976c212dd7e1281fc6e0c79b0aa01c26 (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I74898e791e17971a3105febe660a2140aafaece9
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/mzstring.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwpfilter/source/mzstring.h b/hwpfilter/source/mzstring.h index 4ac98ce0edd0..f3110a6126e8 100644 --- a/hwpfilter/source/mzstring.h +++ b/hwpfilter/source/mzstring.h @@ -88,7 +88,7 @@ class MzString int length() 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 // allocation size, use the following member to set the size. |