From b98a8221c70474687c4da8c60f2892ce9a792e93 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Mar 2015 15:29:05 +0100 Subject: [PATCH] const_cast: convert some C-style casts and remove some redundant ones Change-Id: I74898e791e17971a3105febe660a2140aafaece9 --- hwpfilter/source/mzstring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(c_str()); } // If it is not possible to use the constructor with an initial // allocation size, use the following member to set the size.