]> git.lyx.org Git - lyx.git/blobdiff - src/TextClass.cpp
Revert part of 21965 which was debugging code.
[lyx.git] / src / TextClass.cpp
index 57dd90ec358c116fa81c4c279b6fe3c92474775c..00cbf0941439fc5bbc89cea97c055c12ab2c8f36 100644 (file)
@@ -18,8 +18,8 @@
 
 #include "Color.h"
 #include "Counters.h"
-#include "debug.h"
-#include "gettext.h"
+#include "support/debug.h"
+#include "support/gettext.h"
 #include "Floating.h"
 #include "FloatList.h"
 #include "Layout.h"
@@ -52,6 +52,7 @@ using support::addName;
 
 extern FontInfo lyxRead(Lexer &, FontInfo const & fi = sane_font);
 
+
 namespace {
 
 class LayoutNamesEqual : public std::unary_function<LayoutPtr, bool> {
@@ -449,7 +450,7 @@ bool TextClass::read(FileName const & filename, ReadType rt)
                error = !layout2layout(filename, tempfile);
                if (!error)
                        error = read(tempfile, rt);
-               support::unlink(tempfile);
+               tempfile.removeFile();
                return error;
        }