Fix compilation on Visual C++.

Without this patch, there would be errors like these (warnings turned into errors):

D:\LyX\lyx-unstable\src\frontends\qt\GuiView.cpp(2413): error C4101: 'e': unreferenced local variable
D:\LyX\lyx-unstable\src\frontends\qt\GuiView.cpp(4879): error C4101: 'ex': unreferenced local variable
This commit is contained in:
Thibaut Cuvelier 2020-10-12 19:21:58 +02:00
parent cb52dd2e42
commit 92b9c82dea

View File

@ -2410,7 +2410,7 @@ Buffer * GuiView::loadDocument(FileName const & filename, bool tolastfiles)
Buffer * newBuffer = nullptr;
try {
newBuffer = checkAndLoadLyXFile(filename);
} catch (ExceptionMessage const & e) {
} catch (ExceptionMessage const &) {
setBusy(false);
throw;
}
@ -4876,7 +4876,7 @@ void GuiView::doShowDialog(QString const & qname, QString const & qdata,
}
}
}
catch (ExceptionMessage const & ex) {
catch (ExceptionMessage const &) {
d.in_show_ = false;
throw;
}