Kaydet (Commit) 64cc39e0 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1251589 silence Using invalid iterator

Change-Id: I116294ee40eb61e8cbf308369998bd48a2f27812
üst a4f39904
......@@ -752,11 +752,7 @@ const ScCalcConfig::OpenCLImplMatcher& ScCalcOptionsDialog::CurrentWhiteOrBlackL
auto i = rSet.begin();
int n(mpOpenCLWhiteAndBlackListBox->GetSelectEntryPos());
while (n && i != rSet.end())
{
++i;
--n;
}
std::advance(i, n);
return *i;
}
......
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