<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>вт, 16 окт. 2018 г. в 15:34, <<a href="mailto:scan-admin@coverity.com">scan-admin@coverity.com</a>>:<br></div></div></div></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">** CID 1440300:  API usage errors  (INVALIDATE_ITERATOR)<br>
/vcl/source/window/dlgctrl.cxx: 548 in <unnamed>::focusNextInGroup(const __gnu_cxx::__normal_iterator<VclPtr<RadioButton> *, std::vector<VclPtr<RadioButton>, std::allocator<VclPtr<RadioButton>>>> &, std::vector<VclPtr<RadioButton>, std::allocator<VclPtr<RadioButton>>> &)()<br>
<br>
<br>
________________________________________________________________________________________________________<br>
*** CID 1440300:  API usage errors  (INVALIDATE_ITERATOR)<br>
/vcl/source/window/dlgctrl.cxx: 548 in <unnamed>::focusNextInGroup(const __gnu_cxx::__normal_iterator<VclPtr<RadioButton> *, std::vector<VclPtr<RadioButton>, std::allocator<VclPtr<RadioButton>>>> &, std::vector<VclPtr<RadioButton>, std::allocator<VclPtr<RadioButton>>> &)()<br>
542             {<br>
543                 aI = std::find_if(rGroup.begin(), aStart, isSuitableDestination);<br>
544                 if (aI == aStart)<br>
545                     return false;<br>
546             }<br>
547     <br>
>>>     CID 1440300:  API usage errors  (INVALIDATE_ITERATOR)<br>
>>>     Dereferencing iterator "aI" though it is already past the end of its container.<br>
548             vcl::Window *pWindow = *aI;<br>
549     <br>
550             pWindow->ImplControlFocus( GetFocusFlags::CURSOR | GetFocusFlags::Forward );<br>
551             return true;<br>
552         }<br>
553     <br></blockquote><div><br></div><div>I suppose it's FP since aI ∈ [rGroup.begin(); aStart) ∪ (aStart; rGroup.end()).</div></div></div></div></div></div></div>