diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-14 10:40:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-14 12:02:49 +0000 |
commit | 64cc39e0c576611297625ebcac8d48613a5bb175 (patch) | |
tree | 5d6d56875777edaa8b70fc015e6c77420c8adba1 /sc/source/ui/optdlg | |
parent | a4f39904dca51f86171508c08cfd00d35b7a3989 (diff) |
coverity#1251589 silence Using invalid iterator
Change-Id: I116294ee40eb61e8cbf308369998bd48a2f27812
Diffstat (limited to 'sc/source/ui/optdlg')
-rw-r--r-- | sc/source/ui/optdlg/calcoptionsdlg.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.cxx b/sc/source/ui/optdlg/calcoptionsdlg.cxx index 14d2de5d00aa..f7a13977c589 100644 --- a/sc/source/ui/optdlg/calcoptionsdlg.cxx +++ b/sc/source/ui/optdlg/calcoptionsdlg.cxx @@ -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; } |