mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 21:05:12 +00:00
c_str fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8986 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bcec816212
commit
0ea0f3399a
@ -1,3 +1,7 @@
|
|||||||
|
2004-09-16 Lars Gullik Bjonnes <larsbj@gullik.net>
|
||||||
|
|
||||||
|
* Spacing.C (set): c_str fix
|
||||||
|
|
||||||
2004-09-09 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
2004-09-09 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||||
|
|
||||||
* lyx_cb.C (Reconfigure): quote the name of configure script in
|
* lyx_cb.C (Reconfigure): quote the name of configure script in
|
||||||
|
@ -56,7 +56,7 @@ void Spacing::set(Spacing::Space sp, float val)
|
|||||||
void Spacing::set(Spacing::Space sp, string const & val)
|
void Spacing::set(Spacing::Space sp, string const & val)
|
||||||
{
|
{
|
||||||
float fval = 0.0;
|
float fval = 0.0;
|
||||||
istringstream istr(val.c_str());
|
istringstream istr(val);
|
||||||
istr >> fval;
|
istr >> fval;
|
||||||
set(sp, fval);
|
set(sp, fval);
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
2004-09-16 Lars Gullik Bjonnes <larsbj@gullik.net>
|
||||||
|
|
||||||
|
* math_parser.C (tokenize): c_str fix
|
||||||
|
(mathed_parse_cell): c_str fix
|
||||||
|
(mathed_parse_normal): c_str fix
|
||||||
|
|
||||||
|
* math_nestinset.C (priv_dispatch): c_str fix
|
||||||
|
(priv_dispatch): c_str fix
|
||||||
|
|
||||||
|
* math_hullinset.C (doExtern): c_str fix
|
||||||
|
|
||||||
|
* math_extern.C (extractNumber): c_str fix
|
||||||
|
(pipeThroughMaxima): c_str fix
|
||||||
|
(pipeThroughMaple): c_str fix
|
||||||
|
(pipeThroughOctave): c_str fix
|
||||||
|
|
||||||
2004-09-15 Lars Gullik Bjonnes <larsbj@gullik.net>
|
2004-09-15 Lars Gullik Bjonnes <larsbj@gullik.net>
|
||||||
|
|
||||||
* math_binominset.h (MATH_BINOMINSET_H): fix include guard.
|
* math_binominset.h (MATH_BINOMINSET_H): fix include guard.
|
||||||
|
@ -200,7 +200,7 @@ bool extractString(MathAtom const & at, string & str)
|
|||||||
// convert this inset somehow to a number
|
// convert this inset somehow to a number
|
||||||
bool extractNumber(MathArray const & ar, int & i)
|
bool extractNumber(MathArray const & ar, int & i)
|
||||||
{
|
{
|
||||||
istringstream is(charSequence(ar.begin(), ar.end()).c_str());
|
istringstream is(charSequence(ar.begin(), ar.end()));
|
||||||
is >> i;
|
is >> i;
|
||||||
return is;
|
return is;
|
||||||
}
|
}
|
||||||
@ -208,7 +208,7 @@ bool extractNumber(MathArray const & ar, int & i)
|
|||||||
|
|
||||||
bool extractNumber(MathArray const & ar, double & d)
|
bool extractNumber(MathArray const & ar, double & d)
|
||||||
{
|
{
|
||||||
istringstream is(charSequence(ar.begin(), ar.end()).c_str());
|
istringstream is(charSequence(ar.begin(), ar.end()));
|
||||||
is >> d;
|
is >> d;
|
||||||
return is;
|
return is;
|
||||||
}
|
}
|
||||||
@ -963,7 +963,7 @@ namespace {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
// search line with "Incorrect syntax"
|
// search line with "Incorrect syntax"
|
||||||
istringstream is(out.c_str());
|
istringstream is(out);
|
||||||
string line;
|
string line;
|
||||||
while (is) {
|
while (is) {
|
||||||
getline(is, line);
|
getline(is, line);
|
||||||
@ -1080,7 +1080,7 @@ namespace {
|
|||||||
string out = captureOutput("mint -i 1 -S -s -q -q", expr + ';');
|
string out = captureOutput("mint -i 1 -S -s -q -q", expr + ';');
|
||||||
if (out.empty())
|
if (out.empty())
|
||||||
break; // expression syntax is ok
|
break; // expression syntax is ok
|
||||||
istringstream is(out.c_str());
|
istringstream is(out);
|
||||||
string line;
|
string line;
|
||||||
getline(is, line);
|
getline(is, line);
|
||||||
if (line.find("on line") != 0)
|
if (line.find("on line") != 0)
|
||||||
@ -1134,7 +1134,7 @@ namespace {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
// search line with single caret
|
// search line with single caret
|
||||||
istringstream is(out.c_str());
|
istringstream is(out);
|
||||||
string line;
|
string line;
|
||||||
while (is) {
|
while (is) {
|
||||||
getline(is, line);
|
getline(is, line);
|
||||||
|
@ -875,7 +875,7 @@ void MathHullInset::doExtern(LCursor & cur, FuncRequest & func)
|
|||||||
{
|
{
|
||||||
string lang;
|
string lang;
|
||||||
string extra;
|
string extra;
|
||||||
istringstream iss(func.argument.c_str());
|
istringstream iss(func.argument);
|
||||||
iss >> lang >> extra;
|
iss >> lang >> extra;
|
||||||
if (extra.empty())
|
if (extra.empty())
|
||||||
extra = "noextra";
|
extra = "noextra";
|
||||||
|
@ -392,7 +392,7 @@ void MathNestInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
cur.message(_("Paste"));
|
cur.message(_("Paste"));
|
||||||
replaceSelection(cur);
|
replaceSelection(cur);
|
||||||
size_t n = 0;
|
size_t n = 0;
|
||||||
istringstream is(cmd.argument.c_str());
|
istringstream is(cmd.argument);
|
||||||
is >> n;
|
is >> n;
|
||||||
pasteSelection(cur, n);
|
pasteSelection(cur, n);
|
||||||
cur.clearSelection(); // bug 393
|
cur.clearSelection(); // bug 393
|
||||||
@ -612,7 +612,7 @@ void MathNestInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
lyxerr << "LFUN_SETXY broken!" << endl;
|
lyxerr << "LFUN_SETXY broken!" << endl;
|
||||||
int x = 0;
|
int x = 0;
|
||||||
int y = 0;
|
int y = 0;
|
||||||
istringstream is(cmd.argument.c_str());
|
istringstream is(cmd.argument);
|
||||||
is >> x >> y;
|
is >> x >> y;
|
||||||
cur.setScreenPos(x, y);
|
cur.setScreenPos(x, y);
|
||||||
break;
|
break;
|
||||||
|
@ -389,7 +389,7 @@ void Parser::tokenize(istream & is)
|
|||||||
|
|
||||||
void Parser::tokenize(string const & buffer)
|
void Parser::tokenize(string const & buffer)
|
||||||
{
|
{
|
||||||
istringstream is(buffer.c_str(), ios::in | ios::binary);
|
istringstream is(buffer, ios::in | ios::binary);
|
||||||
|
|
||||||
char c;
|
char c;
|
||||||
while (is.get(c)) {
|
while (is.get(c)) {
|
||||||
@ -1216,7 +1216,7 @@ void Parser::parse1(MathGridInset & grid, unsigned flags,
|
|||||||
|
|
||||||
void mathed_parse_cell(MathArray & ar, string const & str)
|
void mathed_parse_cell(MathArray & ar, string const & str)
|
||||||
{
|
{
|
||||||
istringstream is(str.c_str());
|
istringstream is(str);
|
||||||
mathed_parse_cell(ar, is);
|
mathed_parse_cell(ar, is);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1229,7 +1229,7 @@ void mathed_parse_cell(MathArray & ar, istream & is)
|
|||||||
|
|
||||||
bool mathed_parse_normal(MathAtom & t, string const & str)
|
bool mathed_parse_normal(MathAtom & t, string const & str)
|
||||||
{
|
{
|
||||||
istringstream is(str.c_str());
|
istringstream is(str);
|
||||||
return Parser(is).parse(t);
|
return Parser(is).parse(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1248,7 +1248,7 @@ bool mathed_parse_normal(MathAtom & t, LyXLex & lex)
|
|||||||
|
|
||||||
void mathed_parse_normal(MathGridInset & grid, string const & str)
|
void mathed_parse_normal(MathGridInset & grid, string const & str)
|
||||||
{
|
{
|
||||||
istringstream is(str.c_str());
|
istringstream is(str);
|
||||||
Parser(is).parse1(grid, 0, MathInset::MATH_MODE, false);
|
Parser(is).parse1(grid, 0, MathInset::MATH_MODE, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user