mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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:
parent
cb52dd2e42
commit
92b9c82dea
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user