mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 03:25:13 +00:00
LibTextCodec: Mark compilation-unit-only functions as static
This enables a nice warning in case a function becomes dead code.
This commit is contained in:
parent
5fa771c8b2
commit
69a0502f80
Notes:
sideshowbarker
2024-07-19 03:42:12 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/69a0502f804 Pull-request: https://github.com/SerenityOS/serenity/pull/3096 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/stelar7
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@
|
|||
|
||||
namespace TextCodec {
|
||||
|
||||
Latin1Decoder& latin1_decoder()
|
||||
static Latin1Decoder& latin1_decoder()
|
||||
{
|
||||
static Latin1Decoder* decoder;
|
||||
if (!decoder)
|
||||
|
@ -38,7 +38,7 @@ Latin1Decoder& latin1_decoder()
|
|||
return *decoder;
|
||||
}
|
||||
|
||||
UTF8Decoder& utf8_decoder()
|
||||
static UTF8Decoder& utf8_decoder()
|
||||
{
|
||||
static UTF8Decoder* decoder;
|
||||
if (!decoder)
|
||||
|
|
Loading…
Add table
Reference in a new issue