Fixed operator==().
This commit is contained in:
parent
d6289b28ee
commit
02e149daf4
@ -121,13 +121,13 @@ const bool text::operator==(const text& t) const
|
||||
{
|
||||
if (getWordCount() == t.getWordCount())
|
||||
{
|
||||
bool equal = false;
|
||||
bool equal = true;
|
||||
|
||||
std::vector <word*>::const_iterator i = m_words.begin();
|
||||
std::vector <word*>::const_iterator j = t.m_words.begin();
|
||||
|
||||
for ( ; equal && i != m_words.end() ; ++i, ++j)
|
||||
equal = (*i == *j);
|
||||
equal = (**i == **j);
|
||||
|
||||
return (equal);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user