Kaydet (Commit) ca551694 authored tarafından Michael Stahl's avatar Michael Stahl

sc: actually std::set::operator== does not use Compare parameter

... but operator== of the Key type, so this no longer compares the
pointed-to objects.

(regression from b5ae7dbc)

Change-Id: I5b0caa9abfa47362383776f7c1d44b73910f15ee
üst df3ed9c8
...@@ -1169,7 +1169,18 @@ size_t ScDBCollection::NamedDBs::size() const ...@@ -1169,7 +1169,18 @@ size_t ScDBCollection::NamedDBs::size() const
bool ScDBCollection::NamedDBs::operator== (const NamedDBs& r) const bool ScDBCollection::NamedDBs::operator== (const NamedDBs& r) const
{ {
return m_DBs == r.m_DBs; if (m_DBs.size() != r.m_DBs.size())
{
return false;
}
for (auto iter1 = m_DBs.begin(), iter2 = r.m_DBs.begin(); iter1 != m_DBs.end(); ++iter1, ++iter2)
{
if (**iter1 != **iter2)
{
return false;
}
}
return true;
} }
ScDBCollection::AnonDBs::iterator ScDBCollection::AnonDBs::begin() ScDBCollection::AnonDBs::iterator ScDBCollection::AnonDBs::begin()
......
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