]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLabel.cpp
Fix text frame drawing.
[lyx.git] / src / insets / InsetLabel.cpp
index bca76ee44c72ee18230786f63d0d7de563da5348..b1adabbf7937a21b0e802a5ef015f7713e919472 100644 (file)
 
 namespace lyx {
 
-using support::escape;
-
-using std::string;
-using std::vector;
-
 
 InsetLabel::InsetLabel(InsetCommandParams const & p)
        : InsetCommand(p, "label")
 {}
 
 
-std::auto_ptr<Inset> InsetLabel::doClone() const
+Inset * InsetLabel::clone() const
 {
-       return std::auto_ptr<Inset>(new InsetLabel(params()));
+       return new InsetLabel(params());
 }
 
 
@@ -67,7 +62,7 @@ void InsetLabel::doDispatch(Cursor & cur, FuncRequest & cmd)
                        break;
                }
                if (p["name"] != params()["name"])
-                       cur.bv().buffer()->changeRefsIfUnique(params()["name"],
+                       cur.bv().buffer().changeRefsIfUnique(params()["name"],
                                        p["name"], Inset::REF_CODE);
                setParams(p);
                break;
@@ -83,7 +78,7 @@ void InsetLabel::doDispatch(Cursor & cur, FuncRequest & cmd)
 int InsetLabel::latex(Buffer const &, odocstream & os,
                      OutputParams const &) const
 {
-       os << escape(getCommand());
+       os << support::escape(getCommand());
        return 0;
 }