aboutsummaryrefslogtreecommitdiffstats
path: root/src/text.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2004-10-26 20:17:28 +0000
committerVincent Richard <[email protected]>2004-10-26 20:17:28 +0000
commit02e149daf407f2d01c40f0aa38f5b26d5fb7e6ec (patch)
tree24e19671260192aeeba90f9d0a749c05622b4763 /src/text.cpp
parentFixed a typo in Doxygen comment (&lt;). (diff)
downloadvmime-02e149daf407f2d01c40f0aa38f5b26d5fb7e6ec.tar.gz
vmime-02e149daf407f2d01c40f0aa38f5b26d5fb7e6ec.zip
Fixed operator==().
Diffstat (limited to 'src/text.cpp')
-rw-r--r--src/text.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text.cpp b/src/text.cpp
index 0969707c..804507b1 100644
--- a/src/text.cpp
+++ b/src/text.cpp
@@ -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);
}