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
e445026e
Commit
e445026e
authored
Mar 15, 2021
by
Jose Borreguero
Browse files
Refs #30885 from static to dynamic cast
Signed-off-by:
Jose Borreguero
<
borreguero@gmail.com
>
parent
0c5d2ac0
Changes
1
Hide whitespace changes
Inline
Side-by-side
qt/widgets/instrumentview/src/InstrumentWidgetPickTab.cpp
View file @
e445026e
...
...
@@ -1007,7 +1007,7 @@ QString ComponentInfoController::displayNonDetectorInfo(
QString
ComponentInfoController
::
displayPeakInfo
(
Mantid
::
Geometry
::
IPeak
*
ipeak
)
{
std
::
stringstream
text
;
auto
peak
=
stat
ic_cast
<
Mantid
::
DataObjects
::
Peak
*>
(
ipeak
);
auto
peak
=
dynam
ic_cast
<
Mantid
::
DataObjects
::
Peak
*>
(
ipeak
);
auto
instrument
=
peak
->
getInstrument
();
auto
sample
=
instrument
->
getSample
()
->
getPos
();
auto
source
=
instrument
->
getSource
()
->
getPos
();
...
...
@@ -1081,7 +1081,7 @@ void ComponentInfoController::displayAlignPeaksInfo(
// find projection of beam direction onto plane
// this is so we always orientate to a common reference direction
auto
peak
=
stat
ic_cast
<
const
Mantid
::
DataObjects
::
Peak
*>
(
ipeak
);
auto
peak
=
dynam
ic_cast
<
const
Mantid
::
DataObjects
::
Peak
*>
(
ipeak
);
const
auto
instrument
=
peak
->
getInstrument
();
const
auto
samplePos
=
instrument
->
getSample
()
->
getPos
();
const
auto
sourcePos
=
instrument
->
getSource
()
->
getPos
();
...
...
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