]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
restore comment about boost::shared_ptr and dtor.
[lyx.git] / src / LaTeXFeatures.cpp
index 8a142ce876d9910376db17dce35b3dd27597c13d..8e0b42e63b97ede8311b09ed519aaa9812820fc4 100644 (file)
@@ -382,7 +382,7 @@ void LaTeXFeatures::useLayout(docstring const & layoutname)
                    != usedLayouts_.end())
                        return;
 
-               Layout const & layout = *tclass[layoutname];
+               Layout const & layout = tclass[layoutname];
                require(layout.requires());
 
                if (!layout.depends_on().empty()) {
@@ -547,7 +547,8 @@ char const * simplefeatures[] = {
        "endnotes",
        "ifthen",
        "amsthm",
-       "listings"
+       "listings",
+       "bm"
 };
 
 int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
@@ -839,7 +840,7 @@ docstring const LaTeXFeatures::getTClassPreamble() const
        list<docstring>::const_iterator cit = usedLayouts_.begin();
        list<docstring>::const_iterator end = usedLayouts_.end();
        for (; cit != end; ++cit) {
-               tcpreamble << tclass[*cit]->preamble();
+               tcpreamble << tclass[*cit].preamble();
        }
 
        return tcpreamble.str();