소스 검색

LibTextCodec: Mark compilation-unit-only functions as static

This enables a nice warning in case a function becomes dead code.
Ben Wiederhake 5 년 전
부모
커밋
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)