https://bugs.documentfoundation.org/show_bug.cgi?id=103830
--- Comment #12 from Aron Budea <[email protected]> ---
Thanks for the very quick response with a fix, Noel!
I didn't understand the purpose of that additional clause at first, and the fix
helped me understand.
I've got a question, though:
m_aMap is of type OInterfaceMap, which is of type std::unordered_multimap, so
there could be multiple values for a key. Find returns an element, but then it
might return the "wrong" element (same key, different value) and the correct
one won't be found, since only one is checked.
Is that a real possibility here? (the equality check makes me think so)
Using std::unordered_multimap::equal_range to find entries with the same key,
and iterating through them to find the one with the same source (if exists)
could eliminate that possibility.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs