From 7b09292cb02b548a5964ea0ee0c081a9730ce4f6 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 29 Feb 2008 20:12:35 +0000 Subject: [PATCH] Fix InsetBibitem::clone. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23359 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetBibitem.cpp | 8 -------- src/insets/InsetBibitem.h | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/insets/InsetBibitem.cpp b/src/insets/InsetBibitem.cpp index e0a14e68b8..576cece165 100644 --- a/src/insets/InsetBibitem.cpp +++ b/src/insets/InsetBibitem.cpp @@ -60,14 +60,6 @@ ParamInfo const & InsetBibitem::findInfo(string const & /* cmdName */) } -Inset * InsetBibitem::clone() const -{ - InsetBibitem * b = new InsetBibitem(params()); - b->autolabel_ = autolabel_; - return b; -} - - void InsetBibitem::doDispatch(Cursor & cur, FuncRequest & cmd) { switch (cmd.action) { diff --git a/src/insets/InsetBibitem.h b/src/insets/InsetBibitem.h index 6f476fd1b5..c6e6d70841 100644 --- a/src/insets/InsetBibitem.h +++ b/src/insets/InsetBibitem.h @@ -56,7 +56,7 @@ protected: virtual void doDispatch(Cursor & cur, FuncRequest & cmd); private: /// - virtual Inset * clone() const; + virtual Inset * clone() const { return new InsetBibitem(*this); } /// The label that is set by updateLabels docstring autolabel_; /// -- 2.39.2