瀏覽代碼

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)