X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfunc.C;h=5c6eece450d21a820e797518a324d35a5c30c503;hb=0031da054f072922ed081bc8a877ffd8eb280210;hp=11c6140e7f463288795b9fd6c2c8e29a60286c1f;hpb=4c295014fe141d56fcfd110473ab53c4e86e62d4;p=features.git diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 11c6140e7f..5c6eece450 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -298,7 +298,7 @@ int LyXFunc::processKeySym(KeySym keysym, unsigned int state) bool tmp_sc = show_sc; show_sc = false; - Dispatch(action, argument.c_str()); + Dispatch(action, argument); show_sc = tmp_sc; return 0; @@ -432,7 +432,7 @@ int LyXFunc::processKeyEvent(XEvent * ev) bool tmp_sc = show_sc; show_sc = false; - Dispatch(action, argument.c_str()); + Dispatch(action, argument); show_sc = tmp_sc; return 0; @@ -650,10 +650,11 @@ LyXFunc::func_status LyXFunc::getStatus(int ac) const 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); } @@ -1388,7 +1389,7 @@ string const LyXFunc::Dispatch(int ac, Dispatch(int(LFUN_LAYOUT), textclasslist.NameOfLayout(owner->view() ->buffer()->params.textclass, - sel).c_str()); + sel)); return string(); }