Просмотр исходного кода

LibTextCodec: Mark compilation-unit-only functions as static

This enables a nice warning in case a function becomes dead code.
Ben Wiederhake 5 лет назад
Родитель
Сommit
69a0502f80
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Libraries/LibTextCodec/Decoder.cpp

+ 2 - 2
Libraries/LibTextCodec/Decoder.cpp

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