diff options
| author | 2018-11-15 09:04:44 +0000 | |
|---|---|---|
| committer | 2018-11-15 09:04:44 +0000 | |
| commit | 2725220eee59433788f53a32570fa5ddd43cd2d7 (patch) | |
| tree | 9351b499f60290724570b0b11362fb57ca89ab2e | |
| parent | Add anonymous namespace around detector.cpp (diff) | |
| download | KVIrc-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-x | src/modules/language/detector/build_detector.pl | 2 |
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"; |
