Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
b0ae4ba0
Commit
b0ae4ba0
authored
Mar 23, 2021
by
Jose Borreguero
Browse files
Refs #30887 catch exception by reference
Signed-off-by:
Jose Borreguero
<
borreguero@gmail.com
>
parent
20ec8d71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Framework/Crystal/src/PeaksIntersection.cpp
View file @
b0ae4ba0
...
...
@@ -132,7 +132,7 @@ void PeaksIntersection::executePeaksIntersection(const bool checkPeakExtents) {
PARALLEL_FOR_IF
(
Kernel
::
threadSafe
(
*
ws
,
*
outputWorkspace
))
for
(
int
i
=
0
;
i
<
nPeaks
;
++
i
)
{
PARALLEL_START_INTERUPT_REGION
Peak
*
peak
=
dynamic_cast
<
Peak
*>
(
ws
->
getPeakPtr
(
i
));
Peak
*
peak
=
dynamic_cast
<
Peak
*>
(
ws
->
getPeakPtr
(
i
));
V3D
peakCenter
=
coordFrameFunc
(
peak
);
if
(
i
%
frequency
==
0
)
...
...
qt/widgets/instrumentview/src/PeakOverlay.cpp
View file @
b0ae4ba0
...
...
@@ -252,7 +252,7 @@ void PeakOverlay::createMarkers(const PeakMarker2D::Style &style) {
try
{
auto
peakFull
=
dynamic_cast
<
Mantid
::
DataObjects
::
Peak
&>
(
peak
);
pos
=
peakFull
.
getDetPos
();
}
catch
(
std
::
bad_cast
)
{
}
catch
(
std
::
bad_cast
&
)
{
g_log
.
error
(
"Cannot create markers for this type of peak"
);
return
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment