X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCmdDef.cpp;h=8a480bd4df01678756cc771e3a2bc7bda8b858ab;hb=7441172d4d9a26eb4824bb8bee003f457ef34f1c;hp=779ac8270a36dbed39b26dbe518431e493cc66d4;hpb=6b2232a29c682d8e62d1d2b963bb1a70bee4330b;p=lyx.git diff --git a/src/CmdDef.cpp b/src/CmdDef.cpp index 779ac8270a..8a480bd4df 100644 --- a/src/CmdDef.cpp +++ b/src/CmdDef.cpp @@ -99,8 +99,8 @@ bool CmdDef::read(string const & def_file) } case BN_DEFFILE: if (lex.next()) { - string const tmp = lex.getString(); - error |= !read(tmp); + string const stmp = lex.getString(); + error |= !read(stmp); } else { lex.printError("BN_DEFFILE: Missing file name"); error = true; @@ -151,12 +151,12 @@ void CmdDef::release(string const & name) } -CmdDef::newCmdDefResult CmdDef::newCmdDef(string const & name, +CmdDef::newCmdDefResult CmdDef::newCmdDef(string const & name, string const & def) { string const name2 = trim(name); - if (name2.empty()) + if (name2.empty()) return CmdDefNameEmpty; if (cmdDefMap.find(name) != cmdDefMap.end())