aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2018-11-15 09:04:44 +0000
committerGravatar Alexey Sokolov2018-11-15 09:04:44 +0000
commit2725220eee59433788f53a32570fa5ddd43cd2d7 (patch)
tree9351b499f60290724570b0b11362fb57ca89ab2e
parentAdd anonymous namespace around detector.cpp (diff)
downloadKVIrc-2725220eee59433788f53a32570fa5ddd43cd2d7.tar.gz
KVIrc-2725220eee59433788f53a32570fa5ddd43cd2d7.tar.bz2
KVIrc-2725220eee59433788f53a32570fa5ddd43cd2d7.zip
Add anonymous namespace to build_detector.pl too.
It's probably not going to be run ever again, but just for case if it is.
-rwxr-xr-xsrc/modules/language/detector/build_detector.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/language/detector/build_detector.pl b/src/modules/language/detector/build_detector.pl
index 45c75d5fc..389e869d2 100755
--- a/src/modules/language/detector/build_detector.pl
+++ b/src/modules/language/detector/build_detector.pl
@@ -102,6 +102,7 @@ print OUTPUT "#include <ctype.h>\n";
print OUTPUT "\n";
print OUTPUT "#include \"detector.h\"\n";
print OUTPUT "\n";
+print OUTPUT "namespace {\n";
print OUTPUT "///////////////////////////////////////////////////////////////////////////////\n";
print OUTPUT "// CORE DEFS\n";
print OUTPUT "///////////////////////////////////////////////////////////////////////////////\n";
@@ -786,6 +787,7 @@ print OUTPUT "\n";
print OUTPUT "\n";
print OUTPUT "static const char * unknown_string = \"?\";\n";
+print OUTPUT "} // namespace\n";
print OUTPUT "\n";
print OUTPUT "void detect_language_and_encoding(const char * data,LanguageAndEncodingResult * retBuffer,int iFlags = 0)\n";
print OUTPUT "{\n";