[LyX/master] Right exception rethrowing
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Mon Oct 12 13:05:14 UTC 2020
commit 238fd9ac502c3e07af62b1380a4b7e2a8385defa
Author: Yuriy Skalko <yuriy.skalko at gmail.com>
Date: Fri Oct 9 20:42:51 2020 +0300
Right exception rethrowing
---
src/Paragraph.cpp | 4 ++--
src/frontends/qt/GuiSpellchecker.cpp | 2 +-
src/frontends/qt/GuiView.cpp | 4 ++--
src/mathed/MathExtern.cpp | 4 ++--
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 707e770..9cd9b8b 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -1103,7 +1103,7 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
// add location information and throw again.
e.par_id = id_;
e.pos = i;
- throw(e);
+ throw;
}
if (close)
@@ -2878,7 +2878,7 @@ void Paragraph::latex(BufferParams const & bparams,
// add location information and throw again.
e.par_id = id();
e.pos = i;
- throw(e);
+ throw;
}
}
}
diff --git a/src/frontends/qt/GuiSpellchecker.cpp b/src/frontends/qt/GuiSpellchecker.cpp
index f210013..16df378 100644
--- a/src/frontends/qt/GuiSpellchecker.cpp
+++ b/src/frontends/qt/GuiSpellchecker.cpp
@@ -557,7 +557,7 @@ void SpellcheckerWidget::Private::check()
Alert::warning(message.title_, message.details_);
return;
}
- throw message;
+ throw;
}
// end of document or selection?
diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp
index 00f3b96..2da9ce3 100644
--- a/src/frontends/qt/GuiView.cpp
+++ b/src/frontends/qt/GuiView.cpp
@@ -2412,7 +2412,7 @@ Buffer * GuiView::loadDocument(FileName const & filename, bool tolastfiles)
newBuffer = checkAndLoadLyXFile(filename);
} catch (ExceptionMessage const & e) {
setBusy(false);
- throw(e);
+ throw;
}
setBusy(false);
@@ -4878,7 +4878,7 @@ void GuiView::doShowDialog(QString const & qname, QString const & qdata,
}
catch (ExceptionMessage const & ex) {
d.in_show_ = false;
- throw ex;
+ throw;
}
d.in_show_ = false;
}
diff --git a/src/mathed/MathExtern.cpp b/src/mathed/MathExtern.cpp
index 092de56..4d53b28 100644
--- a/src/mathed/MathExtern.cpp
+++ b/src/mathed/MathExtern.cpp
@@ -1454,7 +1454,7 @@ void writeString(docstring const & s, WriteStream & os)
case WriteStream::wsDefault:
default:
// throw again
- throw(e);
+ throw;
}
}
}
@@ -1528,7 +1528,7 @@ void writeString(docstring const & s, WriteStream & os)
case WriteStream::wsDefault:
default:
// throw again
- throw(e);
+ throw;
}
}
}
More information about the lyx-cvs
mailing list