mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-1030
Removed if comparison error . X-SVN-Rev: 6279
This commit is contained in:
parent
7ee1a75a7d
commit
e33659c6ef
1 changed files with 10 additions and 12 deletions
|
@ -18,18 +18,16 @@ U_NAMESPACE_BEGIN
|
|||
|
||||
SearchIterator::SearchIterator(const SearchIterator &other)
|
||||
{
|
||||
if (other != *this) {
|
||||
m_breakiterator_ = other.m_breakiterator_;
|
||||
m_text_ = other.m_text_;
|
||||
m_search_ = (USearch *)uprv_malloc(sizeof(USearch));
|
||||
m_search_->breakIter = other.m_search_->breakIter;
|
||||
m_search_->isCanonicalMatch = other.m_search_->isCanonicalMatch;
|
||||
m_search_->isOverlap = other.m_search_->isOverlap;
|
||||
m_search_->matchedIndex = other.m_search_->matchedIndex;
|
||||
m_search_->matchedLength = other.m_search_->matchedLength;
|
||||
m_search_->text = other.m_search_->text;
|
||||
m_search_->textLength = other.m_search_->textLength;
|
||||
}
|
||||
m_breakiterator_ = other.m_breakiterator_;
|
||||
m_text_ = other.m_text_;
|
||||
m_search_ = (USearch *)uprv_malloc(sizeof(USearch));
|
||||
m_search_->breakIter = other.m_search_->breakIter;
|
||||
m_search_->isCanonicalMatch = other.m_search_->isCanonicalMatch;
|
||||
m_search_->isOverlap = other.m_search_->isOverlap;
|
||||
m_search_->matchedIndex = other.m_search_->matchedIndex;
|
||||
m_search_->matchedLength = other.m_search_->matchedLength;
|
||||
m_search_->text = other.m_search_->text;
|
||||
m_search_->textLength = other.m_search_->textLength;
|
||||
}
|
||||
|
||||
SearchIterator::~SearchIterator()
|
||||
|
|
Loading…
Add table
Reference in a new issue