1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 14:37:43 +00:00
serenity/Userland/Libraries/LibIDL
Andreas Kling b1f8c5879f LibIDL: Fix bug where entire EffectiveOverloadSet was erased
There was a funny bug here: by storing the "last matched item" as a
pointer, and then using Vector::remove_all_matching() to remove all
items that didn't have that exact address, we would end up removing
everything unless the last item matched was the very first item.

(This happened because every time an item was removed from the vector,
the remaining contents shift one step towards the start of the vector,
affecting item addresses.)

This patch fixes the issue by storing the last match as an index.
2022-11-30 14:43:22 +01:00
..
CMakeLists.txt Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
IDLParser.cpp Everywhere: Remove unnecessary mutable attributes from lambdas 2022-11-19 14:37:31 +00:00
IDLParser.h LibIDL: Remove static maps for interfaces and resolved imports 2022-10-09 10:14:57 +02:00
Types.cpp LibIDL: Fix bug where entire EffectiveOverloadSet was erased 2022-11-30 14:43:22 +01:00
Types.h LibIDL: Fix bug where entire EffectiveOverloadSet was erased 2022-11-30 14:43:22 +01:00