X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FCmdDef.cpp;h=779ac8270a36dbed39b26dbe518431e493cc66d4;hb=43dd383073fc61cfe5f24b87294c4e8698a1827a;hp=a5ac6cf2d4e0838c8e8537599d2404e4aef59b60;hpb=e1453ef6873b8c6d371a62471c5d309154133866;p=lyx.git diff --git a/src/CmdDef.cpp b/src/CmdDef.cpp index a5ac6cf2d4..779ac8270a 100644 --- a/src/CmdDef.cpp +++ b/src/CmdDef.cpp @@ -20,7 +20,6 @@ #include "support/filetools.h" #include "support/lstrings.h" -#include #include using namespace std; @@ -153,7 +152,7 @@ void CmdDef::release(string const & name) CmdDef::newCmdDefResult CmdDef::newCmdDef(string const & name, - string const & def) + string const & def) { string const name2 = trim(name); @@ -164,8 +163,8 @@ CmdDef::newCmdDefResult CmdDef::newCmdDef(string const & name, return CmdDefExists; FuncRequest func = lyxaction.lookupFunc(def); - if (func.action == LFUN_NOACTION - || func.action == LFUN_UNKNOWN_ACTION) { + if (func.action() == LFUN_NOACTION + || func.action() == LFUN_UNKNOWN_ACTION) { return CmdDefInvalid; }