diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 0a1dd64707..c02865ed51 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,8 @@ +2001-11-15 Jean-Marc Lasgouttes + + * math_extern.C (extractNumber): + (extractDiffExponent): add ugly .c_str() + 2001-11-08 Jean-Marc Lasgouttes * math_arrayinset.C (MathArrayInset): diff --git a/src/mathed/math_extern.C b/src/mathed/math_extern.C index d6b6476502..ae162c5435 100644 --- a/src/mathed/math_extern.C +++ b/src/mathed/math_extern.C @@ -194,7 +194,7 @@ bool extractNumber(MathArray const & ar, int & i) string s; MathTextCodes c; charSequence(ar.begin(), ar.end(), s, c); - std::istringstream is(s); + std::istringstream is(s.c_str()); is >> i; return is; } @@ -580,7 +580,7 @@ bool extractDiffExponent(MathArray::iterator it, int & i) string s; if (!extractString((*it).nucleus(), s)) return false; - std::istringstream is(s); + std::istringstream is(s.c_str()); is >> i; return is; } @@ -638,7 +638,7 @@ void extractDiff(MathArray & ar) // things like d.../dx^n int mult = 1; if (extractNumber(script->up().data_, mult)) { - lyxerr << "mult: " << mult << endl; + lyxerr << "mult: " << mult << std::endl; for (int i = 0; i < mult; ++i) diff->addDer(MathArray(dt + 1, st)); }