]> git.lyx.org Git - lyx.git/blobdiff - src/debug.C
more dialog merging
[lyx.git] / src / debug.C
index 6f3e594d8aa11051420f27444280490ea049b5a9..bbf67f0fe52f35b20d7b6a4a5ed5b649c599a250 100644 (file)
 #include <iostream>
 #include <iomanip>
 
-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';
                }
        }
@@ -122,11 +124,14 @@ void lyx_debug_trait::showLevel(ostream & os, lyx_debug_trait::type level)
 void lyx_debug_trait::showTags(ostream & os)
 {
        for (int i = 0; i < numErrorTags ; ++i)
-               os << setw(7) << static_cast<unsigned int>(errorTags[i].level)
-                  << setw(10) << errorTags[i].name
-                  << "  " << lyx::to_utf8(_(errorTags[i].desc)) << '\n';
+               os << setw(10) << static_cast<unsigned int>(errorTags[i].level)
+                  << setw(13) << errorTags[i].name
+                  << "  " << to_utf8(_(errorTags[i].desc)) << '\n';
        os.flush();
 }
 
 
 LyXErr lyxerr;
+
+
+} // namespace lyx