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:
Ben Wiederhake 2020-08-11 00:10:37 +02:00 committed by Andreas Kling
parent 5fa771c8b2
commit 69a0502f80
Notes: sideshowbarker 2024-07-19 03:42:12 +09:00

View file

@ -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)