X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/4388f060552cc537e71e957d32f35e9d75a61233..1a147d096ae81f4c8262f7bfc56bd19fc2dee932:/icuSources/i18n/strrepl.cpp diff --git a/icuSources/i18n/strrepl.cpp b/icuSources/i18n/strrepl.cpp index 7608e288..0eef3d47 100644 --- a/icuSources/i18n/strrepl.cpp +++ b/icuSources/i18n/strrepl.cpp @@ -1,6 +1,8 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /* ********************************************************************** -* Copyright (c) 2002-2011, International Business Machines Corporation +* Copyright (c) 2002-2012, International Business Machines Corporation * and others. All Rights Reserved. ********************************************************************** * Date Name Description @@ -93,7 +95,7 @@ UnicodeFunctor* StringReplacer::clone() const { * Implement UnicodeFunctor */ UnicodeReplacer* StringReplacer::toReplacer() const { - return (UnicodeReplacer*) this; + return const_cast(this); } /**