mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
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:
parent
1edd77ca30
commit
1102636923
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user