From e33659c6ef534b291fd534c72539db9b1c0cd458 Mon Sep 17 00:00:00 2001 From: Syn Wee Quek Date: Wed, 17 Oct 2001 17:57:14 +0000 Subject: [PATCH] ICU-1030 Removed if comparison error . X-SVN-Rev: 6279 --- icu4c/source/i18n/search.cpp | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/icu4c/source/i18n/search.cpp b/icu4c/source/i18n/search.cpp index 66668c81135..6a472e85b30 100644 --- a/icu4c/source/i18n/search.cpp +++ b/icu4c/source/i18n/search.cpp @@ -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()