]> git.lyx.org Git - lyx.git/blobdiff - src/tests/check_layout.cpp
Further amendment to 72a488d7
[lyx.git] / src / tests / check_layout.cpp
index d4180d57b03cbef4e6728bf5f160b955569af3e1..8e2bb6c90f7e482d518df9b75953e9063ee4d43e 100644 (file)
 #include "../support/Package.h"
 
 #include <cstdlib>
+#include <fstream>
 #include <iostream>
+#include <sstream>
+using namespace std;
 
 
 namespace lyx {
@@ -47,8 +50,8 @@ using namespace std;
 bool test_Layout(string const & input, string const & output)
 {
        FileName const ifn(makeAbsPath(input));
-    LayoutFileList& l = LayoutFileList::get();
-       LayoutFileIndex i = l.addLocalLayout(ifn.onlyFileName(), ifn.onlyPath().absFileName());
+       LayoutFileList & l = LayoutFileList::get();
+       LayoutFileIndex i = onlyFileName(l.addLocalLayout(ifn.onlyFileName(), ifn.onlyPath().absFileName()));
        if (i.empty()) {
                cerr << "Could not read layout file " << input << ".layout.\n";
                return false;