ladybird/Userland/Applications/FontEditor
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
..
.gitignore Applications: Move to Userland/Applications/ 2021-01-12 12:05:23 +01:00
CMakeLists.txt FontEditor: Add undo and redo commands 2021-04-23 11:08:11 +02:00
FontEditor.cpp AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
FontEditor.h FontEditor: Warn on unsaved changes 2021-04-26 18:43:35 +02:00
FontEditorWindow.gml FontEditor: Add tooltip to "Move Glyph" button 2021-05-20 22:10:45 +02:00
GlyphEditorWidget.cpp FontEditor: Don't put invalid clicks on the undo stack 2021-04-26 18:43:35 +02:00
GlyphEditorWidget.h FontEditor: Don't put invalid clicks on the undo stack 2021-04-26 18:43:35 +02:00
GlyphMapWidget.cpp LibGUI: Rename ScrollableWidget => AbstractScrollableWidget 2021-05-03 21:03:13 +02:00
GlyphMapWidget.h LibGUI: Rename ScrollableWidget => AbstractScrollableWidget 2021-05-03 21:03:13 +02:00
main.cpp FontEditor: Add missing unix pledge 2021-05-15 16:07:05 +01:00
NewFontDialog.cpp AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
NewFontDialog.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
NewFontDialogPage1.gml FontEditor: Add 'New Font' wizard to editor 2021-04-11 01:16:34 +02:00
NewFontDialogPage2.gml FontEditor: Set proper defaults in NewFontDialog 2021-04-23 11:08:11 +02:00
UndoGlyph.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00