mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 20:15:00 +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
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
Add a link
Reference in a new issue