mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-23 23:13:39 -06:00
Remove const_cast
This commit is contained in:
parent
aa318a5aaf
commit
89feb04b31
@ -473,7 +473,7 @@ void RiuViewerCommands::handlePickAction(int winPosX, int winPosY, Qt::KeyboardM
|
||||
intersectionHit = true;
|
||||
intersectionTriangleHit = crossSectionSourceInfo->triangle(firstPartTriangleIndex);
|
||||
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(const_cast<RimIntersection*>(crossSectionSourceInfo->crossSection()));
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(crossSectionSourceInfo->crossSection());
|
||||
|
||||
}
|
||||
else if (intersectionBoxSourceInfo)
|
||||
@ -482,7 +482,7 @@ void RiuViewerCommands::handlePickAction(int winPosX, int winPosY, Qt::KeyboardM
|
||||
intersectionHit = true;
|
||||
intersectionTriangleHit = intersectionBoxSourceInfo->triangle(firstPartTriangleIndex);
|
||||
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(const_cast<RimIntersectionBox*>(intersectionBoxSourceInfo->intersectionBox()));
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(intersectionBoxSourceInfo->intersectionBox());
|
||||
|
||||
}
|
||||
else if (eclipseWellSourceInfo)
|
||||
|
Loading…
Reference in New Issue
Block a user