Skip to content
Snippets Groups Projects
Commit b0ae4ba0 authored by Jose Borreguero's avatar Jose Borreguero
Browse files

Refs #30887 catch exception by reference


Signed-off-by: default avatarJose Borreguero <borreguero@gmail.com>
parent 20ec8d71
No related branches found
No related tags found
No related merge requests found
...@@ -132,7 +132,7 @@ void PeaksIntersection::executePeaksIntersection(const bool checkPeakExtents) { ...@@ -132,7 +132,7 @@ void PeaksIntersection::executePeaksIntersection(const bool checkPeakExtents) {
PARALLEL_FOR_IF(Kernel::threadSafe(*ws, *outputWorkspace)) PARALLEL_FOR_IF(Kernel::threadSafe(*ws, *outputWorkspace))
for (int i = 0; i < nPeaks; ++i) { for (int i = 0; i < nPeaks; ++i) {
PARALLEL_START_INTERUPT_REGION PARALLEL_START_INTERUPT_REGION
Peak *peak = dynamic_cast<Peak*>(ws->getPeakPtr(i)); Peak *peak = dynamic_cast<Peak *>(ws->getPeakPtr(i));
V3D peakCenter = coordFrameFunc(peak); V3D peakCenter = coordFrameFunc(peak);
if (i % frequency == 0) if (i % frequency == 0)
......
...@@ -252,7 +252,7 @@ void PeakOverlay::createMarkers(const PeakMarker2D::Style &style) { ...@@ -252,7 +252,7 @@ void PeakOverlay::createMarkers(const PeakMarker2D::Style &style) {
try { try {
auto peakFull = dynamic_cast<Mantid::DataObjects::Peak &>(peak); auto peakFull = dynamic_cast<Mantid::DataObjects::Peak &>(peak);
pos = peakFull.getDetPos(); pos = peakFull.getDetPos();
} catch (std::bad_cast) { } catch (std::bad_cast&) {
g_log.error("Cannot create markers for this type of peak"); g_log.error("Cannot create markers for this type of peak");
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment