Skip to content

Commit

Permalink
COMP: Fix hidden overloaded-virtual warning
Browse files Browse the repository at this point in the history
Building CXX object Modules/IO/SpatialObjects/test/CMakeFiles/ITKIOSpatialObjectsTestDriver.dir/itkReadWriteSpatialObjectTest.cxx.o
In file included from ITK/Modules/ThirdParty/MetaIO/src/MetaIO/src/metaScene.h:18:0,
                 from ITK/Modules/Core/SpatialObjects/include/itkMetaSceneConverter.h:24,
                 from ITK/Modules/IO/SpatialObjects/include/itkSpatialObjectWriter.h:21,
                 from ITK/Modules/IO/SpatialObjects/test/itkReadWriteSpatialObjectTest.cxx:19:
ITK/Modules/ThirdParty/MetaIO/src/MetaIO/src/metaObject.h:125:3:
warning: ‘virtual void MetaObject::CopyInfo(const MetaObject*)’ was hidden [-Woverloaded-virtual]
   CopyInfo(const MetaObject * _object);
   ^~~~~~~~
  • Loading branch information
hjmjohnson committed Dec 8, 2020
1 parent aa2b634 commit ef8ffe5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Modules/ThirdParty/MetaIO/src/MetaIO/src/metaTube.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ class METAIO_EXPORT MetaTube : public MetaObject
void
PrintInfo(void) const override;

using MetaObject::CopyInfo;

void
CopyInfo(const MetaTube * _object);

Expand Down

0 comments on commit ef8ffe5

Please sign in to comment.