]> git.lyx.org Git - lyx.git/blobdiff - src/tests/check_layout.cpp
Provide option to prevent unnecessary font loading.
[lyx.git] / src / tests / check_layout.cpp
index 318ae4863f9837503ca236391156c52db43c76fa..7100c712d8c22971be4ff8ba1aab39ffdc1821ec 100644 (file)
 #include "../support/Package.h"
 
 #include <cstdlib>
+#include <fstream>
 #include <iostream>
+#include <sstream>
+using namespace std;
 
 
 namespace lyx {
@@ -22,8 +25,8 @@ void warning(docstring const & title, docstring const & message, bool const &)
        LYXERR0(title);
        LYXERR0(message);
 }
-}
-}
+} // namespace Alert
+} // namespace frontend
 
 bool LaTeXFeatures::isAvailable(std::string const &)
 {
@@ -35,7 +38,7 @@ bool Formats::isZippedFile(support::FileName const &) const
 {
        return false;
 }
-}
+} // namespace lyx
 
 
 using namespace lyx::support;
@@ -115,7 +118,7 @@ bool test_Layout(string const & input, string const & output)
 
 int main(int argc, char * argv[])
 {
-       os::init(argc, argv);
+       os::init(argc, &argv);
        lyxerr.setStream(cerr);
        if (argc < 2 || argc > 3) {
                cerr << "Usage: " << argv[0] << " <input layout file> [<output layout file>]\n";