mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Right exception rethrowing
This commit is contained in:
parent
919a06718a
commit
238fd9ac50
@ -1103,7 +1103,7 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
|
|||||||
// add location information and throw again.
|
// add location information and throw again.
|
||||||
e.par_id = id_;
|
e.par_id = id_;
|
||||||
e.pos = i;
|
e.pos = i;
|
||||||
throw(e);
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (close)
|
if (close)
|
||||||
@ -2878,7 +2878,7 @@ void Paragraph::latex(BufferParams const & bparams,
|
|||||||
// add location information and throw again.
|
// add location information and throw again.
|
||||||
e.par_id = id();
|
e.par_id = id();
|
||||||
e.pos = i;
|
e.pos = i;
|
||||||
throw(e);
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -557,7 +557,7 @@ void SpellcheckerWidget::Private::check()
|
|||||||
Alert::warning(message.title_, message.details_);
|
Alert::warning(message.title_, message.details_);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
throw message;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
// end of document or selection?
|
// end of document or selection?
|
||||||
|
@ -2412,7 +2412,7 @@ Buffer * GuiView::loadDocument(FileName const & filename, bool tolastfiles)
|
|||||||
newBuffer = checkAndLoadLyXFile(filename);
|
newBuffer = checkAndLoadLyXFile(filename);
|
||||||
} catch (ExceptionMessage const & e) {
|
} catch (ExceptionMessage const & e) {
|
||||||
setBusy(false);
|
setBusy(false);
|
||||||
throw(e);
|
throw;
|
||||||
}
|
}
|
||||||
setBusy(false);
|
setBusy(false);
|
||||||
|
|
||||||
@ -4878,7 +4878,7 @@ void GuiView::doShowDialog(QString const & qname, QString const & qdata,
|
|||||||
}
|
}
|
||||||
catch (ExceptionMessage const & ex) {
|
catch (ExceptionMessage const & ex) {
|
||||||
d.in_show_ = false;
|
d.in_show_ = false;
|
||||||
throw ex;
|
throw;
|
||||||
}
|
}
|
||||||
d.in_show_ = false;
|
d.in_show_ = false;
|
||||||
}
|
}
|
||||||
|
@ -1454,7 +1454,7 @@ void writeString(docstring const & s, WriteStream & os)
|
|||||||
case WriteStream::wsDefault:
|
case WriteStream::wsDefault:
|
||||||
default:
|
default:
|
||||||
// throw again
|
// throw again
|
||||||
throw(e);
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1528,7 +1528,7 @@ void writeString(docstring const & s, WriteStream & os)
|
|||||||
case WriteStream::wsDefault:
|
case WriteStream::wsDefault:
|
||||||
default:
|
default:
|
||||||
// throw again
|
// throw again
|
||||||
throw(e);
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user