]> git.lyx.org Git - lyx.git/blobdiff - src/support/fmt.C
Add a bunch of c_str() for string stream uses; remove lyxfunc symbol-insert.
[lyx.git] / src / support / fmt.C
index d7b4897e0829fcfa3169732659305da3aeadc2f7..c3640681005da6a9905afe67b388f7b0f77bf888 100644 (file)
@@ -8,6 +8,10 @@
 
 #include "LString.h"
 
+#if 0
+using std::vsnprintf;
+#endif
+
 /* This output manipulator gives the option to use Old style format
    specifications in ostreams. Note that this is done at the expense
    of typesafety, so if possible this manipulator should be avoided.
@@ -33,7 +37,7 @@ string fmt(char const * fmtstr ...)
        va_list ap;
        while (true) {
                va_start(ap, fmtstr);
-               int const r = ::vsnprintf(str, size, fmtstr, ap);
+               int const r = vsnprintf(str, size, fmtstr, ap);
                va_end(ap);
                if (r == -1) { // size is too small
                        delete [] str;