mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
committed by
Andreas Kling
parent
5fa771c8b2
commit
69a0502f80
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user