]> jfr.im git - irc/kvirc/KVIrc.git/commitdiff
Add anonymous namespace around detector.cpp
authorAlexey Sokolov <redacted>
Tue, 13 Nov 2018 23:08:22 +0000 (23:08 +0000)
committerIceN9ne <redacted>
Wed, 14 Nov 2018 13:59:22 +0000 (08:59 -0500)
It generates names which conflict with other names in global
namespace.

src/modules/language/detector.cpp

index 35f297f402a559306ca347577e1fd0359c3900ae..e51aa5f66ade218f108faa6fb0eeeb94374c932f 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "detector.h"
 
+namespace {
 //
 // CORE DEFS
 //
@@ -18712,6 +18713,7 @@ static int utf8score(const unsigned char * p)
 }
 
 static const char * unknown_string = "?";
+} // namespace
 
 void detect_language_and_encoding(const char * data, LanguageAndEncodingResult * retBuffer, int iFlags = 0)
 {