ladybird/Userland/Libraries/LibPDF
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 LibPDF: Pre-initialize common FlyStrings in CommonNames.h 2021-05-25 00:24:09 +04:30
Command.h LibPDF: Add basic color space support to the renderer 2021-05-25 00:24:09 +04:30
CommonNames.cpp LibPDF: Pre-initialize common FlyStrings in CommonNames.h 2021-05-25 00:24:09 +04:30
CommonNames.h LibPDF: Pre-initialize common FlyStrings in CommonNames.h 2021-05-25 00:24:09 +04:30
Document.cpp LibPDF: Pre-initialize common FlyStrings in CommonNames.h 2021-05-25 00:24:09 +04:30
Document.h LibPDF: Parse outline structures 2021-05-25 00:24:09 +04:30
Filter.cpp LibPDF: Pre-initialize common FlyStrings in CommonNames.h 2021-05-25 00:24:09 +04:30
Filter.h LibPDF: Add support for stream filters 2021-05-25 00:24:09 +04:30
Forward.h LibPDF: Store indirect value refs in Value objects 2021-05-25 00:24:09 +04:30
Object.cpp LibPDF: Store indirect value refs in Value objects 2021-05-25 00:24:09 +04:30
Object.h LibPDF: Parse outline structures 2021-05-25 00:24:09 +04:30
Parser.cpp AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
Parser.h LibPDF: Parse graphics commands 2021-05-18 16:35:23 +02:00
Reader.h LibPDF: Make Reader::dump_state a bit more readable 2021-05-25 00:24:09 +04:30
Renderer.cpp Everywhere: codepoint => code point 2021-06-01 10:01:11 +02:00
Renderer.h LibPDF: Pre-initialize common FlyStrings in CommonNames.h 2021-05-25 00:24:09 +04:30
Value.cpp LibPDF: Store indirect value refs in Value objects 2021-05-25 00:24:09 +04:30
Value.h LibPDF: Store indirect value refs in Value objects 2021-05-25 00:24:09 +04:30
XRefTable.h LibPDF: Add a basic parser and Document structure 2021-05-10 10:32:39 +02:00