1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 11:18:13 +00:00
serenity/Userland
Lenny Maiorani f2336d0144 AK+Everywhere: Move custom deleter capability to OwnPtr
`OwnPtrWithCustomDeleter` was a decorator which provided the ability
to add a custom deleter to `OwnPtr` by wrapping and taking the deleter
as a run-time argument to the constructor. This solution means that no
additional space is needed for the `OwnPtr` because it doesn't need to
store a pointer to the deleter, but comes at the cost of having an
extra type that stores a pointer for every instance.

This logic is moved directly into `OwnPtr` by adding a template
argument that is defaulted to the default deleter for the type. This
means that the type itself stores the pointer to the deleter instead
of every instance and adds some type safety by encoding the deleter in
the type itself instead of taking a run-time argument.
2022-12-17 16:00:08 -05:00
..
Applets LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
Applications PixelPaint: Debounce ImageEditor on_modified_change event 2022-12-17 19:52:11 +00:00
BuggieBox Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00
Demos CatDog: Simplify animation frame logic and fix minor bugs 2022-12-16 08:50:35 -07:00
DevTools HackStudio: Add a factory function for DebugInfoWidget 2022-12-16 09:58:51 +01:00
DynamicLoader AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Games LibFileSystemAccessClient: Rename try_save_file => 2022-12-14 18:26:25 +00:00
Libraries AK+Everywhere: Move custom deleter capability to OwnPtr 2022-12-17 16:00:08 -05:00
Services LibJS: Convert new_object_environment() to NonnullGCPtr 2022-12-16 09:59:56 +01:00
Shell Shell: Disable interactive mode on '-c' 2022-12-12 13:57:06 +00:00
Utilities tsort: Suppress warnings with -q 2022-12-16 10:41:56 -07:00
CMakeLists.txt Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00