]> git.lyx.org Git - lyx.git/blobdiff - src/Lexer.cpp
* gcc does not like missing characters in keywords
[lyx.git] / src / Lexer.cpp
index ce8de705470bde04ad3f5d76e8710ea8dac34b10..e3f1bae89acc46e511f5f83d6780e2c2c2deaae7 100644 (file)
@@ -38,7 +38,6 @@ namespace lyx {
 
 using support::compare_ascii_no_case;
 using support::FileName;
-using support::getFormatFromContents;
 using support::isStrDbl;
 using support::isStrInt;
 using support::ltrim;
@@ -253,7 +252,7 @@ void Lexer::Pimpl::popTable()
 bool Lexer::Pimpl::setFile(FileName const & filename)
 {
        // Check the format of the file.
-       string const format = getFormatFromContents(filename);
+       string const format = filename.guessFormatFromContents();
 
        if (format == "gzip" || format == "zip" || format == "compress") {
                LYXERR(Debug::LYXLEX) << "lyxlex: compressed" << endl;