+// © 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
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<UnicodeFilter *>(this);
}
void UnicodeFilter::setData(const TransliterationRuleData*) {}