From 11026369232dc83b6f6603801521db7633cbef40 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Mon, 25 Oct 2010 12:18:09 +0000 Subject: [PATCH] FFix warnings in Buffer::readString. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35822 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 36864d30ee..3f80cea5f1 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -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; }