]> git.lyx.org Git - lyx.git/blobdiff - src/debug.C
small fix with footnote, use stringstream some more
[lyx.git] / src / debug.C
index 6c2029a18f19b9a2463ce23a07cae0284074b7f6..0ea28abd912605a3332e52ed542f4a786defef12 100644 (file)
@@ -22,13 +22,16 @@ using std::ostream;
 using std::setw;
 using std::endl;
 
+namespace {
+
 struct error_item {
        Debug::type level;
        char const * name;
        char const * desc;
 };
 
-static error_item errorTags[] = {
+
+error_item errorTags[] = {
        { Debug::NONE,      "none",      N_("No debugging message")},
        { Debug::INFO,      "info",      N_("General information")},
        { Debug::INIT,      "init",      N_("Program initialisation")},
@@ -53,7 +56,9 @@ static error_item errorTags[] = {
 };
 
 
-static const int numErrorTags = sizeof(errorTags)/sizeof(error_item);
+int const numErrorTags = sizeof(errorTags)/sizeof(error_item);
+
+} // namespace anon
 
        
 Debug::type const Debug::ANY = Debug::type(