]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetERT.cpp
Change string
[lyx.git] / src / insets / InsetERT.cpp
index e53c90ffb879999663fc97e7edccaf52ab397812..d0114141fafe70c349000c0d49bd7e283f393439 100644 (file)
@@ -48,17 +48,6 @@ InsetERT::InsetERT(Buffer const & buf, CollapseStatus status)
 {}
 
 
-InsetERT::InsetERT(InsetERT const & in)
-       : InsetCollapsable(in)
-{}
-
-
-Inset * InsetERT::clone() const
-{
-       return new InsetERT(*this);
-}
-
-
 InsetERT::~InsetERT()
 {
        InsetERTMailer(*this).hideDialog();
@@ -115,7 +104,7 @@ int InsetERT::docbook(odocstream & os, OutputParams const &) const
 void InsetERT::doDispatch(Cursor & cur, FuncRequest & cmd)
 {
        BufferParams const & bp = cur.buffer().params();
-       LayoutPtr const layout = bp.documentClass().emptyLayout();
+       Layout const layout = bp.documentClass().emptyLayout();
        //lyxerr << "\nInsetERT::doDispatch (begin): cmd: " << cmd << endl;
        switch (cmd.action) {
 
@@ -147,8 +136,8 @@ void InsetERT::doDispatch(Cursor & cur, FuncRequest & cmd)
                // start of an existing paragraph get the buffer language
                // and not latex_language, so we take this brute force
                // approach.
-               cur.current_font.fontInfo() = layout->font;
-               cur.real_current_font.fontInfo() = layout->font;
+               cur.current_font.fontInfo() = layout.font;
+               cur.real_current_font.fontInfo() = layout.font;
                InsetCollapsable::doDispatch(cur, cmd);
                break;
        }