+2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * math_macrotemplate.h: do not use explicitely std::string, but
+ string.
+
+ * math_macroarg.C: avoid bringing the whole std:: namespace in
+ global-land. When you do that, there is an ambiguity between
+ lyxstring and std::string (which may be defined at the same time).
+
+ * formula.C (HandleExtern): add .c_str() to .str() (useful when
+ using lyxtring)
2001-04-27 André Pönitz <poenitz@htwm.de>
string outfile = "/tmp/lyx2" + arg + ".out";
ostringstream os;
par->WriteNormal(os);
- string code = os.str();
+ string code = os.str().c_str();
string script = "lyx2" + arg + " '" + code + "' " + outfile;
lyxerr << "calling: " << script << endl;
Systemcalls cmd(Systemcalls::System, script, 0);
#include "Lsstream.h"
#include "debug.h"
-
-using namespace std;
+using std::endl;
MathMacroArgument::MathMacroArgument(int n)
: MathedInset(string(), LM_OT_MACRO_ARG, LM_ST_TEXT),
#include "debug.h"
#include "Painter.h"
-using namespace std;
+//using namespace std;
MathMacroTemplate::MathMacroTemplate() :
MathParInset(LM_ST_TEXT, "undefined", LM_OT_MACRO),
///
MathMacroTemplate();
///
- MathMacroTemplate(std::string const & name, int nargs);
+ MathMacroTemplate(string const & name, int nargs);
///
void WriteDef(std::ostream &, bool fragile) const;
/// Number of arguments