FFix warnings in Buffer::readString.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35822 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-10-25 12:18:09 +00:00
parent 1edd77ca30
commit 1102636923

View File

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