]> git.lyx.org Git - features.git/commitdiff
FFix warnings in Buffer::readString.
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 25 Oct 2010 12:18:09 +0000 (12:18 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 25 Oct 2010 12:18:09 +0000 (12:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35822 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp

index 36864d30ee363a24ac1bf46830b496b5ef0b67e2..3f80cea5f1a8a22be0613f25b417007087753c55 100644 (file)
@@ -841,6 +841,7 @@ bool Buffer::readString(string const & s)
        switch (readFile(lex, name, true)) {
        case ReadFailure:
                return false;
+
        case ReadWrongVersion: {
                // We need to call lyx2lyx, so write the input to a file
                ofstream os(name.toFilesystemEncoding().c_str());
@@ -848,7 +849,7 @@ bool Buffer::readString(string const & s)
                os.close();
                return readFile(name);
        }
-       case ReadSuccess:
+       case default:
                break;
        }