]> git.lyx.org Git - lyx.git/blobdiff - src/debug.C
hopefully fix tex2lyx linking.
[lyx.git] / src / debug.C
index 6f3e594d8aa11051420f27444280490ea049b5a9..005f562c3c0a5956a5b9b05e0a7212d64de97504 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';
                }
        }
@@ -124,9 +126,12 @@ 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';
+                  << "  " << to_utf8(_(errorTags[i].desc)) << '\n';
        os.flush();
 }
 
 
 LyXErr lyxerr;
+
+
+} // namespace lyx