]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCaption.cpp
Simplify, and delete unused routine.
[features.git] / src / insets / InsetCaption.cpp
index f1f0983810cc8b0b64c16362f86ad36cbb092b5c..f6b24672e46e221a0844659fc509ad2a2473dbf1 100644 (file)
@@ -199,9 +199,7 @@ void InsetCaption::doDispatch(Cursor & cur, FuncRequest & cmd)
        switch (cmd.action()) {
 
        case LFUN_INSET_MODIFY: {
-               string const first_arg = cmd.getArg(0);
-               bool const change_type = first_arg == "changetype";
-               if (change_type) {
+               if (cmd.getArg(0) == "changetype") {
                        cur.recordUndoInset(ATOMIC_UNDO, this);
                        type_ = cmd.getArg(1);
                        cur.forceBufferUpdate();