summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:29:05 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:31 +0100
commitb98a8221c70474687c4da8c60f2892ce9a792e93 (patch)
treea4e0ef48099377d7a290595390f6f2366f550311 /hwpfilter
parent0b1d8eff976c212dd7e1281fc6e0c79b0aa01c26 (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.h2
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.