Coverage Report

Created: 2026-09-26 06:49

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibWeb/Platform/ImageCodecPlugin.cpp
Line
Count
Source
1
/*
2
 * Copyright (c) 2021-2022, Andreas Kling <kling@serenityos.org>
3
 * Copyright (c) 2022, Dex♪ <dexes.ttp@gmail.com>
4
 *
5
 * SPDX-License-Identifier: BSD-2-Clause
6
 */
7
8
#include <LibWeb/Platform/ImageCodecPlugin.h>
9
10
namespace Web::Platform {
11
12
static ImageCodecPlugin* s_the;
13
14
0
ImageCodecPlugin::~ImageCodecPlugin() = default;
15
16
ImageCodecPlugin& ImageCodecPlugin::the()
17
0
{
18
0
    VERIFY(s_the);
19
0
    return *s_the;
20
0
}
21
22
void ImageCodecPlugin::install(ImageCodecPlugin& plugin)
23
0
{
24
0
    VERIFY(!s_the);
25
0
    s_the = &plugin;
26
0
}
27
28
}