/*
**********************************************************************
-* Copyright (c) 2002-2011, International Business Machines Corporation
+* Copyright (c) 2002-2012, International Business Machines Corporation
* and others. All Rights Reserved.
**********************************************************************
* Date Name Description
* 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;
}
/**