compilation fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3032 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2001-11-15 14:52:32 +00:00
parent a31e65aa9f
commit 4de117b23f
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2001-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* math_extern.C (extractNumber):
(extractDiffExponent): add ugly .c_str()
2001-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> 2001-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* math_arrayinset.C (MathArrayInset): * math_arrayinset.C (MathArrayInset):

View File

@ -194,7 +194,7 @@ bool extractNumber(MathArray const & ar, int & i)
string s; string s;
MathTextCodes c; MathTextCodes c;
charSequence(ar.begin(), ar.end(), s, c); charSequence(ar.begin(), ar.end(), s, c);
std::istringstream is(s); std::istringstream is(s.c_str());
is >> i; is >> i;
return is; return is;
} }
@ -580,7 +580,7 @@ bool extractDiffExponent(MathArray::iterator it, int & i)
string s; string s;
if (!extractString((*it).nucleus(), s)) if (!extractString((*it).nucleus(), s))
return false; return false;
std::istringstream is(s); std::istringstream is(s.c_str());
is >> i; is >> i;
return is; return is;
} }
@ -638,7 +638,7 @@ void extractDiff(MathArray & ar)
// things like d.../dx^n // things like d.../dx^n
int mult = 1; int mult = 1;
if (extractNumber(script->up().data_, mult)) { if (extractNumber(script->up().data_, mult)) {
lyxerr << "mult: " << mult << endl; lyxerr << "mult: " << mult << std::endl;
for (int i = 0; i < mult; ++i) for (int i = 0; i < mult; ++i)
diff->addDer(MathArray(dt + 1, st)); diff->addDer(MathArray(dt + 1, st));
} }