]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibitem.cpp
The last commit was, uhh, not what I intended.
[lyx.git] / src / insets / InsetBibitem.cpp
index 137d041c1b8e915679f8ea16360d4dca98f5e02e..1f5b9159483bd406a7d73a692cb7505d727b89c3 100644 (file)
@@ -116,9 +116,9 @@ void InsetBibitem::doDispatch(Cursor & cur, FuncRequest & cmd)
                        cur.noUpdate();
                        break;
                }
-               docstring old_key = params()["key"];
+               docstring const & old_key = params()["key"];
                setParam("label", p["label"]);
-               if (params()["key"] != old_key) {
+               if (p["key"] != old_key) {
                        updateCommand(p["key"]);
                        cur.bv().buffer().changeRefsIfUnique(old_key,
                                params()["key"], CITE_CODE);