summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-08-23 02:17:56 (GMT)
committerAlex Turbov <i.zaufi@gmail.com>2022-11-16 14:37:05 (GMT)
commit049b017c5dfafa26f01dbde87f62d97994665f3c (patch)
tree1ebbbcd3e74ac310613b971832c97e3fbc8d140a /Source
parent30bcdafaeff789b20cc8b6e97b8271c0105a93b1 (diff)
downloadCMake-049b017c5dfafa26f01dbde87f62d97994665f3c.zip
CMake-049b017c5dfafa26f01dbde87f62d97994665f3c.tar.gz
CMake-049b017c5dfafa26f01dbde87f62d97994665f3c.tar.bz2
cmDocumentation.cxx: Use anonymous namespace instead of `static`
Diffstat (limited to 'Source')
-rw-r--r--Source/cmDocumentation.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index d466a12..abb349f 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -16,7 +16,8 @@
#include "cmSystemTools.h"
#include "cmVersion.h"
-static const char* cmDocumentationStandardOptions[][2] = {
+namespace {
+const char* cmDocumentationStandardOptions[][2] = {
{ "-h,-H,--help,-help,-usage,/?", "Print usage information and exit." },
{ "--version,-version,/V [<file>]", "Print version number and exit." },
{ "--help-full [<file>]", "Print all help manuals and exit." },
@@ -46,17 +47,18 @@ static const char* cmDocumentationStandardOptions[][2] = {
{ nullptr, nullptr }
};
-static const char* cmDocumentationCPackGeneratorsHeader[][2] = {
+const char* cmDocumentationCPackGeneratorsHeader[][2] = {
{ nullptr, "The following generators are available on this platform:" },
{ nullptr, nullptr }
};
-static const char* cmDocumentationCMakeGeneratorsHeader[][2] = {
+const char* cmDocumentationCMakeGeneratorsHeader[][2] = {
{ nullptr,
"The following generators are available on this platform (* marks "
"default):" },
{ nullptr, nullptr }
};
+} // anonymous namespace
cmDocumentation::cmDocumentation()
{