mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21832 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8b5c9ef568
commit
6436401cc8
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user