X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/46f4442e9a5a4f3b98b7c1083586332f6a8a99a4..4f1e1a09ce4daed860e35d359ce2fceccb0764e8:/icuSources/i18n/quant.cpp diff --git a/icuSources/i18n/quant.cpp b/icuSources/i18n/quant.cpp index 3b482908..acf579e1 100644 --- a/icuSources/i18n/quant.cpp +++ b/icuSources/i18n/quant.cpp @@ -1,6 +1,8 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /* ********************************************************************** -* Copyright (C) 2001-2008, International Business Machines +* Copyright (C) 2001-2012, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * Date Name Description @@ -54,7 +56,10 @@ UnicodeFunctor* Quantifier::clone() const { * and return the pointer. */ UnicodeMatcher* Quantifier::toMatcher() const { - return (UnicodeMatcher*) this; + Quantifier *nonconst_this = const_cast(this); + UnicodeMatcher *nonconst_base = static_cast(nonconst_this); + + return nonconst_base; } UMatchDegree Quantifier::matches(const Replaceable& text,