Explorar o código

LibTextCodec: Mark compilation-unit-only functions as static

This enables a nice warning in case a function becomes dead code.
Ben Wiederhake %!s(int64=5) %!d(string=hai) anos
pai
achega
69a0502f80
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)