]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/Context.cpp
Changes LayoutList from a vector<LayoutPtr> to a vector<Layout>.
[lyx.git] / src / tex2lyx / Context.cpp
index e2cc1b5e704e771a303428bb7679ef62e0dec8bd..e07ff92caec374d0acaebdb98d937d174d36a54d 100644 (file)
@@ -83,7 +83,7 @@ bool Context::empty = true;
 
 
 Context::Context(bool need_layout_,
-                TextClass const & textclass_,
+                TeX2LyXDocClass const & textclass_,
                 LayoutPtr layout_, LayoutPtr parent_layout_,
                 TeXFont font_)
        : need_layout(need_layout_),
@@ -93,10 +93,10 @@ Context::Context(bool need_layout_,
          layout(layout_), parent_layout(parent_layout_),
          font(font_)
 {
-       if (!layout.get())
-               layout = textclass.defaultLayout();
-       if (!parent_layout.get())
-               parent_layout = textclass.defaultLayout();
+       if (!layout)
+               layout = &textclass.defaultLayout();
+       if (!parent_layout)
+               parent_layout = &textclass.defaultLayout();
 }
 
 
@@ -132,7 +132,7 @@ void Context::check_layout(ostream & os)
                                // that this may require a begin_deeper.
                                if (!deeper_paragraph)
                                        begin_deeper(os);
-                               begin_layout(os, textclass.defaultLayout(),
+                               begin_layout(os, &textclass.defaultLayout(),
                                             font, normalfont);
                                deeper_paragraph = true;
                        }