mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-9530 Remove extra casts that were added to sidestep problems with the clang compiler.
X-SVN-Rev: 32447
This commit is contained in:
parent
87d08a3a2d
commit
71c72d028b
2 changed files with 4 additions and 10 deletions
|
@ -23,14 +23,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 {
|
||||
UnicodeFilter *nonconst_this = const_cast<UnicodeFilter *>(this);
|
||||
UnicodeMatcher *nonconst_base = static_cast<UnicodeMatcher *>(nonconst_this);
|
||||
|
||||
return nonconst_base;
|
||||
return const_cast<UnicodeFilter *>(this);
|
||||
}
|
||||
|
||||
void UnicodeFilter::setData(const TransliterationRuleData*) {}
|
||||
|
|
|
@ -93,10 +93,7 @@ UnicodeFunctor* StringReplacer::clone() const {
|
|||
* Implement UnicodeFunctor
|
||||
*/
|
||||
UnicodeReplacer* StringReplacer::toReplacer() const {
|
||||
StringReplacer *nonconst_this = const_cast<StringReplacer *>(this);
|
||||
UnicodeReplacer *nonconst_base = static_cast<UnicodeReplacer *>(nonconst_this);
|
||||
|
||||
return nonconst_base;
|
||||
return const_cast<StringReplacer *>(this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue