Kaydet (Commit) 50acacae authored tarafından Mike Kaganski's avatar Mike Kaganski

Remove nonsensical loop

The comphelper::ContainerUniquePtrEquals loops through containers itself

Change-Id: I78181d9b4b951bebcd31f40abedcda0cd3e91973
Reviewed-on: https://gerrit.libreoffice.org/45634Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 54d73c33
......@@ -1750,9 +1750,8 @@ bool ScConditionalFormat::EqualEntries( const ScConditionalFormat& r ) const
return false;
//TODO: Test for same entries in reverse order?
for (size_t i=0; i<size(); i++)
if ( ! ::comphelper::ContainerUniquePtrEquals(maEntries, r.maEntries) )
return false;
if ( ! ::comphelper::ContainerUniquePtrEquals(maEntries, r.maEntries) )
return false;
// right now don't check for same range
// we only use this method to merge same conditional formats from
......
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