Skip to content

Commit

Permalink
Add override keyword to overriding functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
gostefan committed Sep 11, 2024
1 parent f40dc71 commit 02af448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osgplugin/ReaderWriterCityGML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ class ReaderWriterCityGML : public osgDB::ReaderWriter

virtual ReadResult readNode( const std::string&, const osgDB::ReaderWriter::Options* ) const override;
virtual ReadResult readNode( std::istream&, const osgDB::ReaderWriter::Options* ) const override;
virtual ReadResult readObject(const std::string& fileName, const osgDB::ReaderWriter::Options* options) const
virtual ReadResult readObject(const std::string& fileName, const osgDB::ReaderWriter::Options* options) const override
{
ReadResult result = readNode(fileName, options);
osg::Node* node = result.getNode();
if (node) return node;
else return result;
}

virtual ReadResult readObject(std::istream& fin, const Options* options) const
virtual ReadResult readObject(std::istream& fin, const Options* options) const override
{
ReadResult result = readNode(fin, options);
osg::Node* node = result.getNode();
Expand Down

0 comments on commit 02af448

Please sign in to comment.