]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/funcrepl.cpp
ICU-511.25.tar.gz
[apple/icu.git] / icuSources / i18n / funcrepl.cpp
index f13d3bc544e65b325f5e77454fb5e4141cd71359..b387b6bed18b04d412cd9dad0ef8c43b91c46d1f 100644 (file)
@@ -1,6 +1,6 @@
 /*
 **********************************************************************
-*   Copyright (c) 2002-2011, International Business Machines Corporation
+*   Copyright (c) 2002-2012, International Business Machines Corporation
 *   and others.  All Rights Reserved.
 **********************************************************************
 *   Date        Name        Description
@@ -66,7 +66,10 @@ UnicodeFunctor* FunctionReplacer::clone() const {
  * and return the pointer.
  */
 UnicodeReplacer* FunctionReplacer::toReplacer() const {
-    return (UnicodeReplacer*) this;
+  FunctionReplacer  *nonconst_this = const_cast<FunctionReplacer *>(this);
+  UnicodeReplacer *nonconst_base = static_cast<UnicodeReplacer *>(nonconst_this);
+  
+  return nonconst_base;
 }
 
 /**