]> git.lyx.org Git - lyx.git/commitdiff
cosmetics
authorAndré Pönitz <poenitz@gmx.net>
Tue, 27 Nov 2007 20:37:08 +0000 (20:37 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 27 Nov 2007 20:37:08 +0000 (20:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21832 a592a061-630c-0410-9148-cb99ea01b6c8

src/debug.cpp
src/debug.h

index c0132eae1160e96c2b4d51b0458933aa5fa47b8e..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,7 +72,7 @@ error_item errorTags[] = {
 };
 
 
-int const numErrorTags = sizeof(errorTags)/sizeof(error_item);
+int const numErrorTags = sizeof(errorTags)/sizeof(errorTags[0]);
 
 } // namespace anon
 
index f6a7f88cf38f8d4e474c68a7565b089f0e033496..c955514f84e4860a4a646d909ce397487057731d 100644 (file)
@@ -120,12 +120,12 @@ typedef basic_debugstream<Debug> LyXErr;
 
 extern LyXErr lyxerr;
 
-} // namespace lyx
-
 #define LYXERR(type, msg) \
        do { \
                if (!lyx::lyxerr.debugging(type)) {} else lyx::lyxerr << msg << std::endl; \
        } while (0)
 
 
+} // namespace lyx
+
 #endif