]> git.lyx.org Git - lyx.git/blobdiff - src/debug.cpp
cosmetics
[lyx.git] / src / debug.cpp
index e509e012baf8f4051ea111efd52cebb074b8d74a..f7e812a5f98400ee4535a1299f97f4b36051a95e 100644 (file)
@@ -33,14 +33,14 @@ using support::isStrInt;
 
 namespace {
 
-struct error_item {
+struct ErrorItem {
        Debug::type level;
        char const * name;
        char const * desc;
 };
 
 
-error_item errorTags[] = {
+ErrorItem errorTags[] = {
        { Debug::NONE,      "none",      N_("No debugging message")},
        { Debug::INFO,      "info",      N_("General information")},
        { Debug::INIT,      "init",      N_("Program initialisation")},
@@ -72,12 +72,12 @@ error_item errorTags[] = {
 };
 
 
-int const numErrorTags = sizeof(errorTags)/sizeof(error_item);
+int const numErrorTags = sizeof(errorTags)/sizeof(errorTags[0]);
 
 } // namespace anon
 
 
-lyx_debug_trait::type lyx_debug_trait::value(string const & val)
+Debug::type Debug::value(string const & val)
 {
        type l = Debug::NONE;
        string v = val;
@@ -103,7 +103,7 @@ lyx_debug_trait::type lyx_debug_trait::value(string const & val)
 }
 
 
-void lyx_debug_trait::showLevel(ostream & os, lyx_debug_trait::type level)
+void Debug::showLevel(ostream & os, Debug::type level)
 {
        // Show what features are traced
        for (int i = 0; i != numErrorTags; ++i) {
@@ -121,7 +121,7 @@ void lyx_debug_trait::showLevel(ostream & os, lyx_debug_trait::type level)
 }
 
 
-void lyx_debug_trait::showTags(ostream & os)
+void Debug::showTags(ostream & os)
 {
        for (int i = 0; i != numErrorTags ; ++i)
                os << setw(10) << static_cast<unsigned int>(errorTags[i].level)