Fixed operator==().

This commit is contained in:
Vincent Richard 2004-10-26 20:17:28 +00:00
parent d6289b28ee
commit 02e149daf4

View File

@ -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);
}