#include <config.h>
+#include "../support/debug.h"
#include "../support/FileName.h"
#include "../support/filetools.h"
#include "../Format.h"
#include "../support/Package.h"
#include <cstdlib>
+#include <fstream>
#include <iostream>
+#include <sstream>
+using namespace std;
namespace lyx {
namespace frontend {
namespace Alert {
-void warning(docstring const & title, docstring const & message, bool const &)
+void warning(docstring const & title, docstring const & message, bool)
{
LYXERR0(title);
LYXERR0(message);
}
-}
-}
+} // namespace Alert
+} // namespace frontend
bool LaTeXFeatures::isAvailable(std::string const &)
{
{
return false;
}
-}
+} // namespace lyx
using namespace lyx::support;
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;
}
LayoutFile const & f = l[i];
- ostream * os = NULL;
+ ostream * os = nullptr;
if (output == "-")
os = &cout;
else if (!output.empty())
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";