From 4de117b23fc128a02cdfc9b1d82d8d8745e278ed Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 15 Nov 2001 14:52:32 +0000 Subject: [PATCH] compilation fixes git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3032 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 5 +++++ src/mathed/math_extern.C | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) 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)); } -- 2.39.2