]> git.lyx.org Git - lyx.git/blobdiff - src/LayoutFile.cpp
* Doxy.
[lyx.git] / src / LayoutFile.cpp
index d2c1da37490e50f7ff157f2163936d66aa92ca92..3c877b6675baa364a24a339dba1a400b73992572 100644 (file)
@@ -18,7 +18,7 @@
 #include "Lexer.h"
 #include "TextClass.h"
 
-#include "support/assert.h"
+#include "support/lassert.h"
 #include "support/debug.h"
 #include "support/FileName.h"
 #include "support/filetools.h"
@@ -47,6 +47,14 @@ LayoutFile::LayoutFile(string const & fn, string const & cln,
        texClassAvail_ = texClassAvail;
 }
 
+LayoutFileList::~LayoutFileList()
+{
+       ClassMap::const_iterator it = classmap_.begin();
+       ClassMap::const_iterator en = classmap_.end();
+       for (; it != en; ++it) {
+               delete it->second;
+       }
+}
 
 LayoutFileList & LayoutFileList::get() 
 {
@@ -187,8 +195,6 @@ void LayoutFileList::reset(LayoutFileIndex const & classname) {
 
 
 string const LayoutFileList::localPrefix = "LOCAL:";
-string const LayoutFileList::embeddedPrefix = "EMBED:";
-
 
 LayoutFileIndex 
        LayoutFileList::addLayoutFile(string const & textclass, string const & path,
@@ -204,8 +210,6 @@ LayoutFileIndex
        
        if (type == Local)
                localIndex = localPrefix + fullName;
-       else if (type == Embedded)
-               localIndex = embeddedPrefix + textclass;
        
        // if the local file has already been loaded, return it
        if (haveClass(localIndex))