Mark some functions with override

Fixes some Clang warnings about overriding a virtual function without the
override keyword.
pull/294/head
Chris Robinson 7 years ago
parent 917a3b5dff
commit 021627bdf8

@ -141,11 +141,11 @@ namespace Resource
void setUnRefImageDataAfterApply(bool unref);
/// @see ResourceManager::updateCache
virtual void updateCache(double referenceTime);
void updateCache(double referenceTime) override;
virtual void clearCache();
void clearCache() override;
virtual void reportStats(unsigned int frameNumber, osg::Stats* stats) const;
void reportStats(unsigned int frameNumber, osg::Stats* stats) const override;
private:

@ -32,9 +32,9 @@ namespace Terrain
osg::ref_ptr<osg::Node> getChunk(float size, const osg::Vec2f& center, int lod, unsigned int lodFlags);
virtual void reportStats(unsigned int frameNumber, osg::Stats* stats) const;
void reportStats(unsigned int frameNumber, osg::Stats* stats) const override;
virtual void clearCache();
void clearCache() override;
void releaseGLObjects(osg::State* state) override;

Loading…
Cancel
Save