X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fdebug.C;h=b629f57a0d0646c51a0edf880c4fdeb51deb6cc1;hb=98c966c64594611e469313314abd1e59524adb4a;hp=b5213386f5c6f4a17af4b6aa3217d70b856bbc97;hpb=d208f37600974ad73b20bde4d83ad862513148cd;p=lyx.git diff --git a/src/debug.C b/src/debug.C index b5213386f5..b629f57a0d 100644 --- a/src/debug.C +++ b/src/debug.C @@ -1,8 +1,8 @@ /* This file is part of -* ====================================================== -* +* ====================================================== +* * LyX, The Document Processor -* +* * Copyright 1999-2001 The LyX Team. * * ====================================================== */ @@ -64,7 +64,7 @@ int const numErrorTags = sizeof(errorTags)/sizeof(error_item); } // namespace anon - + Debug::type const Debug::ANY = Debug::type( Debug::INFO | Debug::INIT | Debug::KEY | Debug::GUI | Debug::PARSER | Debug::LYXRC | Debug::KBMAP | Debug::LATEX | @@ -74,7 +74,7 @@ Debug::type const Debug::ANY = Debug::type( Debug::INSETTEXT | Debug::GRAPHICS); -Debug::type Debug::value(string const & val) +Debug::type Debug::value(string const & val) { type l = Debug::NONE; string v(val); @@ -84,11 +84,11 @@ Debug::type Debug::value(string const & val) if (tmp.empty()) break; // Is it a number? - if (isStrInt(tmp)) + if (isStrInt(tmp)) l |= static_cast(strToInt(tmp)); else // Search for an explicit name - for (int i = 0 ; i < numErrorTags ; ++i) + for (int i = 0 ; i < numErrorTags ; ++i) if (tmp == errorTags[i].name) { l |= errorTags[i].level; break; @@ -112,7 +112,7 @@ void Debug::showLevel(ostream & o, Debug::type level) } -void Debug::showTags(ostream & os) +void Debug::showTags(ostream & os) { for (int i = 0 ; i < numErrorTags ; ++i) os << setw(7) << errorTags[i].level