]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
compil fix.
[lyx.git] / src / Buffer.cpp
index e192c1466514241988da7565f8b2f22b7c5d05bc..1135b18ef0f00d1566bbc75e1a69992ba0d8d1fd 100644 (file)
@@ -154,7 +154,7 @@ namespace fs = boost::filesystem;
 
 namespace {
 
-int const LYX_FORMAT = 294; //pavel pdfoptions
+int const LYX_FORMAT = 295; //Uwe: htmlurl, href
 
 } // namespace anon
 
@@ -750,7 +750,7 @@ Buffer::ReadStatus Buffer::readFile(Lexer & lex, FileName const & filename,
        }
 
        lex.next();
-       string const token(lex.getString());
+       string const token = lex.getString();
 
        if (!lex) {
                Alert::error(_("Document could not be read"),
@@ -1834,10 +1834,8 @@ void Buffer::buildMacros()
 
 
 void Buffer::changeRefsIfUnique(docstring const & from, docstring const & to,
-       int inset_code)
+       InsetCode code)
 {
-       InsetCode code = static_cast<InsetCode>(inset_code);
-
        //FIXME: This does not work for child documents yet.
        BOOST_ASSERT(code == CITE_CODE || code == REF_CODE);
        // Check if the label 'from' appears more than once