X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/4388f060552cc537e71e957d32f35e9d75a61233..cecc3f9394f261e71def48cf396d137687dbd0a7:/icuSources/common/unifilt.cpp?ds=sidebyside diff --git a/icuSources/common/unifilt.cpp b/icuSources/common/unifilt.cpp index 856e5b97..4ab0d9b5 100644 --- a/icuSources/common/unifilt.cpp +++ b/icuSources/common/unifilt.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-2011, International Business Machines +* Copyright (c) 2001-2012, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * Date Name Description @@ -23,11 +25,11 @@ UnicodeMatcher::~UnicodeMatcher() {} UnicodeFilter::~UnicodeFilter() {} /** - * UnicodeFunctor API. Cast 'this' to a UnicodeMatcher* pointer - * and return the pointer. + * UnicodeFunctor API. + * Note that UnicodeMatcher is a base class of UnicodeFilter. */ UnicodeMatcher* UnicodeFilter::toMatcher() const { - return (UnicodeMatcher*) this; + return const_cast(this); } void UnicodeFilter::setData(const TransliterationRuleData*) {}