Skip to content

COMP: vtkSlicerTerminology(Category|Type): Fix -Woverloaded-virtual warnings

Created by: jcfr

This commit fixes warnings like this one:

In file included from /path/to/Slicer/Modules/Loadable/Terminologies/Logic/vtkSlicerTerminologyCategory.h:27:0,
                 from /path/to/Slicer/Modules/Loadable/Terminologies/Logic/vtkSlicerTerminologyEntry.h:32,
                 from /path/to/Slicer/Modules/Loadable/Terminologies/Widgets/qSlicerTerminologyNavigatorWidget.h:32,
                 from /path/to/Slicer/Modules/Loadable/Terminologies/Widgets/qSlicerTerminologyNavigatorWidget.cxx:24:
/path/to/Slicer/Libs/MRML/Core/vtkCodedEntry.h:41:16: warning: ‘virtual void vtkCodedEntry::Copy(vtkCodedEntry*)’ was hidden [-Woverloaded-virtual]
   virtual void Copy(vtkCodedEntry* aType);
                ^
In file included from /path/to/Slicer/Modules/Loadable/Terminologies/Logic/vtkSlicerTerminologyEntry.h:32:0,
                 from /path/to/Slicer/Modules/Loadable/Terminologies/Widgets/qSlicerTerminologyNavigatorWidget.h:32,
                 from /path/to/Slicer/Modules/Loadable/Terminologies/Widgets/qSlicerTerminologyNavigatorWidget.cxx:24:
/path/to/Slicer/Modules/Loadable/Terminologies/Logic/vtkSlicerTerminologyCategory.h:50:16: warning:   by ‘virtual void vtkSlicerTerminologyCategory::Copy(vtkSlicerTerminologyCategory*)’ [-Woverloaded-virtual]
   virtual void Copy(vtkSlicerTerminologyCategory* aCategory);
                ^

Merge request reports

Loading