Kaydet (Commit) e469ab0d authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Noel Grandin

sc: Compare vectors by simpler code

Change-Id: I5efac4a449b388c2d8a6e47beb4a6a8fbfed909a
Reviewed-on: https://gerrit.libreoffice.org/57797
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 387f4b1e
......@@ -339,19 +339,7 @@ bool ScRangeList::operator==( const ScRangeList& r ) const
if ( this == &r )
return true;
if (maRanges.size() != r.maRanges.size())
return false;
auto itr1 = maRanges.begin(), itrEnd = maRanges.end();
auto itr2 = r.maRanges.begin();
for (; itr1 != itrEnd; ++itr1, ++itr2)
{
const ScRange& r1 = *itr1;
const ScRange& r2 = *itr2;
if (r1 != r2)
return false;
}
return true;
return maRanges == r.maRanges;
}
bool ScRangeList::operator!=( const ScRangeList& r ) const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment