#include <config.h>
-#if 0
-#ifdef HAVE_SSTREAM
-#include <sstream>
-using std::istringstream;
-#else
-#include <strstream>
-#endif
-#else
#include "Lsstream.h"
-#endif
#include <time.h>
#include <locale.h>
bool tmp_sc = show_sc;
show_sc = false;
- Dispatch(action, argument.c_str());
+ Dispatch(action, argument);
show_sc = tmp_sc;
return 0;
bool tmp_sc = show_sc;
show_sc = false;
- Dispatch(action, argument.c_str());
+ Dispatch(action, argument);
show_sc = tmp_sc;
return 0;
string const LyXFunc::Dispatch(string const & s)
{
// Split command string into command and argument
- string cmd, line = frontStrip(s);
+ string cmd;
+ string line = frontStrip(s);
string arg = strip(frontStrip(split(line, cmd, ' ')));
- return Dispatch(lyxaction.LookupFunc(cmd.c_str()), arg.c_str());
+ return Dispatch(lyxaction.LookupFunc(cmd.c_str()), arg);
}
Dispatch(int(LFUN_LAYOUT),
textclasslist.NameOfLayout(owner->view()
->buffer()->params.textclass,
- sel).c_str());
+ sel));
return string();
}
cur_value = par->spacing.getValue();
}
-//#ifdef HAVE_SSTREAM
istringstream istr(argument);
-//#else
-// istrstream istr(argument.c_str());
-//#endif
+
string tmp;
istr >> tmp;
Spacing::Space new_spacing = cur_spacing;
case LFUN_GOTO_PARAGRAPH:
{
-//#ifdef HAVE_SSTREAM
istringstream istr(argument);
-//#else
-// istrstream istr(argument.c_str());
-//#endif
int id;
istr >> id;