1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-28 19:02:07 +00:00
serenity/Userland/Applications/HexEditor
Ali Mohammad Pur 51c2c69357 AK+Everywhere: Disallow constructing Functions from incompatible types
Previously, AK::Function would accept _any_ callable type, and try to
call it when called, first with the given set of arguments, then with
zero arguments, and if all of those failed, it would simply not call the
function and **return a value-constructed Out type**.
This lead to many, many, many hard to debug situations when someone
forgot a `const` in their lambda argument types, and many cases of
people taking zero arguments in their lambdas to ignore them.
This commit reworks the Function interface to not include any such
surprising behaviour, if your function instance is not callable with
the declared argument set of the Function, it can simply not be
assigned to that Function instance, end of story.
2021-06-06 00:27:30 +04:30
..
CMakeLists.txt HexEditor: Construct Find dialog from GML 2021-05-25 13:17:28 +01:00
FindDialog.cpp HexEditor: Add 'Find All' option to Find Dialog to find all matches 2021-05-27 22:57:17 +02:00
FindDialog.gml HexEditor: Add 'Find All' option to Find Dialog to find all matches 2021-05-27 22:57:17 +02:00
FindDialog.h HexEditor: Add 'Find All' option to Find Dialog to find all matches 2021-05-27 22:57:17 +02:00
GoToOffsetDialog.cpp AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
GoToOffsetDialog.gml HexEditor: Add 'Go to Offset...' dialog 2021-05-23 18:13:49 +02:00
GoToOffsetDialog.h HexEditor: Add 'Go to Offset...' dialog 2021-05-23 18:13:49 +02:00
HexEditor.cpp HexEditor: Fix off-by-one bugs in selected text length calculations 2021-06-01 12:23:43 +02:00
HexEditor.h HexEditor: Fix off-by-one bugs in selected text length calculations 2021-06-01 12:23:43 +02:00
HexEditorWidget.cpp HexEditor: Fix off-by-one bugs in selected text length calculations 2021-06-01 12:23:43 +02:00
HexEditorWidget.h HexEditor: Add 'Find All' option to Find Dialog to find all matches 2021-05-27 22:57:17 +02:00
HexEditorWindow.gml HexEditor: Add 'Find All' option to Find Dialog to find all matches 2021-05-27 22:57:17 +02:00
main.cpp Userland: Tighten a *lot* of pledges! :^) 2021-05-13 23:28:40 +02:00
SearchResultsModel.h HexEditor: Add 'Find All' option to Find Dialog to find all matches 2021-05-27 22:57:17 +02:00