From: Behdad Esfahbod Date: Thu, 29 Apr 2010 06:28:54 +0000 (-0400) Subject: Use const_cast X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=602e4f8d5512cdf48c696ad64ad62ff97f6dbdcc;p=platform%2Fupstream%2FlibHarfBuzzSharp.git Use const_cast --- diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index a062aff..a1763af 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -276,8 +276,7 @@ struct Sanitizer _hb_sanitize_init (context, blob); - /* Note: We drop const here */ - Type *t = CastP ((void *) context->start); + Type *t = CastP (const_cast (context->start)); sane = t->sanitize (SANITIZE_ARG); if (sane) {