mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 20:22:27 +02:00
Add missing override keywords.
Fixes warnings like: /libraries/entities-renderer/src/RenderableTextEntityItem.h:47:18: warning: ‘virtual bool render::entities::TextEntityRenderer::needsRenderUpdate() const’ can be marked override [-Wsuggest-override] 47 | virtual bool needsRenderUpdate() const; | ^~~~~~~~~~~~~~~~~
This commit is contained in:
parent
668dbc9ffb
commit
6e9e11993c
2 changed files with 7 additions and 7 deletions
|
@ -44,7 +44,7 @@ protected:
|
|||
void onRemoveFromSceneTyped(const TypedEntityPointer& entity) override;
|
||||
|
||||
private:
|
||||
virtual bool needsRenderUpdate() const;
|
||||
virtual bool needsRenderUpdate() const override;
|
||||
virtual void doRenderUpdateSynchronousTyped(const ScenePointer& scene, Transaction& transaction, const TypedEntityPointer& entity) override;
|
||||
virtual void doRenderUpdateAsynchronousTyped(const TypedEntityPointer& entity) override;
|
||||
virtual void doRender(RenderArgs* args) override;
|
||||
|
|
|
@ -85,9 +85,9 @@ private:
|
|||
class UnsourcedListenerReference : public ListenerReference {
|
||||
public:
|
||||
inline UnsourcedListenerReference(T* target, void (T::*slot)(QSharedPointer<ReceivedMessage>));
|
||||
virtual bool invokeDirectly(const QSharedPointer<ReceivedMessage>& receivedMessagePointer, const QSharedPointer<Node>& sourceNode);
|
||||
virtual bool isSourced() const { return false; }
|
||||
virtual QObject* getObject() const { return _target; }
|
||||
virtual bool invokeDirectly(const QSharedPointer<ReceivedMessage>& receivedMessagePointer, const QSharedPointer<Node>& sourceNode) override;
|
||||
virtual bool isSourced() const override { return false; }
|
||||
virtual QObject* getObject() const override { return _target; }
|
||||
|
||||
private:
|
||||
QPointer<T> _target;
|
||||
|
@ -98,9 +98,9 @@ private:
|
|||
class SourcedListenerReference : public ListenerReference {
|
||||
public:
|
||||
inline SourcedListenerReference(T* target, void (T::*slot)(QSharedPointer<ReceivedMessage>, QSharedPointer<Node>));
|
||||
virtual bool invokeDirectly(const QSharedPointer<ReceivedMessage>& receivedMessagePointer, const QSharedPointer<Node>& sourceNode);
|
||||
virtual bool isSourced() const { return true; }
|
||||
virtual QObject* getObject() const { return _target; }
|
||||
virtual bool invokeDirectly(const QSharedPointer<ReceivedMessage>& receivedMessagePointer, const QSharedPointer<Node>& sourceNode) override;
|
||||
virtual bool isSourced() const override { return true; }
|
||||
virtual QObject* getObject() const override { return _target; }
|
||||
|
||||
private:
|
||||
QPointer<T> _target;
|
||||
|
|
Loading…
Reference in a new issue