Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMP: Fix -Woverloaded-virtual in vtkSlicerMarkupsWidgetRepresentation3D #5331

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Dec 4, 2020

This commit fixes the following warning introduced in 412b656 (ENH: Add
miscellaneous improvements to markups VTK widgets)

  In file included from /path/to/Slicer/Modules/Loadable/Markups/VTKWidgets/vtkSlicerMarkupsWidgetRepresentation.h:45:0,
                   from /path/to/Slicer/Modules/Loadable/Markups/VTKWidgets/vtkSlicerMarkupsWidgetRepresentation3D.h:31,
                   from /path/to/Slicer/Modules/Loadable/Markups/VTKWidgets/vtkSlicerMarkupsWidgetRepresentation3D.cxx:36:
  /path/to/Slicer/Libs/MRML/DisplayableManager/vtkMRMLAbstractWidgetRepresentation.h:148:16: warning: ‘virtual void vtkMRMLAbstractWidgetRepresentation::UpdateRelativeCoincidentTopologyOffsets(vtkMapper*)’ was hidden [-Woverloaded-virtual]
     virtual void UpdateRelativeCoincidentTopologyOffsets(vtkMapper* mapper);
                  ^
  In file included from /path/to/Slicer/Modules/Loadable/Markups/VTKWidgets/vtkSlicerMarkupsWidgetRepresentation3D.cxx:36:0:
  /path/to/Slicer/Modules/Loadable/Markups/VTKWidgets/vtkSlicerMarkupsWidgetRepresentation3D.h:148:8: warning:   by ‘void vtkSlicerMarkupsWidgetRepresentation3D::UpdateRelativeCoincidentTopologyOffsets(vtkMapper*, vtkMapper*)’ [-Woverloaded-virtual]
     void UpdateRelativeCoincidentTopologyOffsets(vtkMapper* mapper, vtkMapper* occludedMapper);
          ^

This commit fixes the following warning introduced in 412b656 (ENH: Add
miscellaneous improvements to markups VTK widgets)

  In file included from /path/to/Slicer/Modules/Loadable/Markups/VTKWidgets/vtkSlicerMarkupsWidgetRepresentation.h:45:0,
                   from /path/to/Slicer/Modules/Loadable/Markups/VTKWidgets/vtkSlicerMarkupsWidgetRepresentation3D.h:31,
                   from /path/to/Slicer/Modules/Loadable/Markups/VTKWidgets/vtkSlicerMarkupsWidgetRepresentation3D.cxx:36:
  /path/to/Slicer/Libs/MRML/DisplayableManager/vtkMRMLAbstractWidgetRepresentation.h:148:16: warning: ‘virtual void vtkMRMLAbstractWidgetRepresentation::UpdateRelativeCoincidentTopologyOffsets(vtkMapper*)’ was hidden [-Woverloaded-virtual]
     virtual void UpdateRelativeCoincidentTopologyOffsets(vtkMapper* mapper);
                  ^
  In file included from /path/to/Slicer/Modules/Loadable/Markups/VTKWidgets/vtkSlicerMarkupsWidgetRepresentation3D.cxx:36:0:
  /path/to/Slicer/Modules/Loadable/Markups/VTKWidgets/vtkSlicerMarkupsWidgetRepresentation3D.h:148:8: warning:   by ‘void vtkSlicerMarkupsWidgetRepresentation3D::UpdateRelativeCoincidentTopologyOffsets(vtkMapper*, vtkMapper*)’ [-Woverloaded-virtual]
     void UpdateRelativeCoincidentTopologyOffsets(vtkMapper* mapper, vtkMapper* occludedMapper);
          ^
Copy link
Contributor

@lassoan lassoan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@jcfr jcfr merged commit 55a2bff into Slicer:master Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants