Improving UnsavedFile operator==

This commit is contained in:
Strahinja Val Markovic 2012-07-12 20:54:08 -07:00
parent 27e1400558
commit 81811964c3

View File

@ -45,7 +45,10 @@ struct UnsavedFile
// operator should be more than adequate here // operator should be more than adequate here
bool operator== ( const UnsavedFile &other ) const bool operator== ( const UnsavedFile &other ) const
{ {
return filename_ == other.filename_ && contents_ == other.contents_; return
filename_ == other.filename_ &&
contents_ == other.contents_ &&
length_ == other.length_;
} }
}; };