mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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)) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user