X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fdebug.C;h=005f562c3c0a5956a5b9b05e0a7212d64de97504;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=6f3e594d8aa11051420f27444280490ea049b5a9;hpb=a6444784dca48da8b1f7723be12069b2e1dbb4c5;p=lyx.git diff --git a/src/debug.C b/src/debug.C index 6f3e594d8a..005f562c3c 100644 --- a/src/debug.C +++ b/src/debug.C @@ -20,10 +20,12 @@ #include #include -using lyx::docstring; -using lyx::support::ascii_lowercase; -using lyx::support::bformat; -using lyx::support::isStrInt; + +namespace lyx { + +using support::ascii_lowercase; +using support::bformat; +using support::isStrInt; using std::setw; using std::string; @@ -108,10 +110,10 @@ void lyx_debug_trait::showLevel(ostream & os, lyx_debug_trait::type level) if (errorTags[i].level != Debug::ANY && errorTags[i].level != Debug::NONE && errorTags[i].level & level) { - // avoid lyx::to_utf8(_(...)) re-entrance problem + // avoid to_utf8(_(...)) re-entrance problem docstring const s = _(errorTags[i].desc); - os << lyx::to_utf8(bformat(_("Debugging `%1$s' (%2$s)"), - lyx::from_utf8(errorTags[i].name), s)) + os << to_utf8(bformat(_("Debugging `%1$s' (%2$s)"), + from_utf8(errorTags[i].name), s)) << '\n'; } } @@ -124,9 +126,12 @@ void lyx_debug_trait::showTags(ostream & os) for (int i = 0; i < numErrorTags ; ++i) os << setw(7) << static_cast(errorTags[i].level) << setw(10) << errorTags[i].name - << " " << lyx::to_utf8(_(errorTags[i].desc)) << '\n'; + << " " << to_utf8(_(errorTags[i].desc)) << '\n'; os.flush(); } LyXErr lyxerr; + + +} // namespace lyx