mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
LibGfx: Make validate_before_create() create a regular bool
This is for validating that a decoder with a weak or nonexistent sniff() method thinks it can decode an image. This should not be treated as an error. No behavior change.
This commit is contained in:
parent
69e4f924b7
commit
6607757b08
Notes:
sideshowbarker
2024-07-16 22:51:10 +09:00
Author: https://github.com/nico
Commit: 6607757b08
Pull-request: https://github.com/SerenityOS/serenity/pull/23518
Reviewed-by: https://github.com/LucasChollet ✅
4 changed files with 12 additions and 10 deletions
|
@ -14,7 +14,7 @@ struct TGALoadingContext;
|
|||
|
||||
class TGAImageDecoderPlugin final : public ImageDecoderPlugin {
|
||||
public:
|
||||
static ErrorOr<bool> validate_before_create(ReadonlyBytes);
|
||||
static bool validate_before_create(ReadonlyBytes);
|
||||
static ErrorOr<NonnullOwnPtr<ImageDecoderPlugin>> create(ReadonlyBytes);
|
||||
|
||||
virtual ~TGAImageDecoderPlugin() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue