X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fdebug.cpp;h=f7e812a5f98400ee4535a1299f97f4b36051a95e;hb=6436401cc8e4dee34366b617af4fd28857adf962;hp=c0132eae1160e96c2b4d51b0458933aa5fa47b8e;hpb=8b5c9ef5680d3dbb248c11bf9b6fa040d277a39e;p=lyx.git diff --git a/src/debug.cpp b/src/debug.cpp index c0132eae11..f7e812a5f9 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -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