mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Use getArg to read math-extern arguments
This avoids a use of istringstream that coverity dislikes.
This commit is contained in:
parent
a2bd6ac642
commit
2d02c39d56
@ -1722,13 +1722,11 @@ void InsetMathHull::check() const
|
|||||||
|
|
||||||
void InsetMathHull::doExtern(Cursor & cur, FuncRequest & func)
|
void InsetMathHull::doExtern(Cursor & cur, FuncRequest & func)
|
||||||
{
|
{
|
||||||
docstring dlang;
|
//FIXME: sort out whether we want std::string or docstring for those
|
||||||
docstring extra;
|
string const lang = func.getArg(0);
|
||||||
idocstringstream iss(func.argument());
|
docstring extra = from_utf8(func.getArg(1));
|
||||||
iss >> dlang >> extra;
|
|
||||||
if (extra.empty())
|
if (extra.empty())
|
||||||
extra = from_ascii("noextra");
|
extra = from_ascii("noextra");
|
||||||
string const lang = to_ascii(dlang);
|
|
||||||
|
|
||||||
// replace selection with result of computation
|
// replace selection with result of computation
|
||||||
if (reduceSelectionToOneCell(cur)) {
|
if (reduceSelectionToOneCell(cur)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user