summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2017-02-09 13:14:28 +0000
committerSean Harmer <sean.harmer@kdab.com>2017-02-11 13:54:47 +0000
commit7a4ab54b9265ac17bdd3355b5ec26ab82dacddde (patch)
tree5093df1fa760062e35c2ade40aaf8b22335a80b8
parent74d78e55ecd932bf2d17657906b3f67de5291520 (diff)
Fix Clang warnings: missing override declarations
Change-Id: Ifd6d83cd38358eef44af74e887d3a649917d764c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
-rw-r--r--tests/auto/render/textures/tst_textures.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/render/textures/tst_textures.cpp b/tests/auto/render/textures/tst_textures.cpp
index 9246bba34..58cb76c94 100644
--- a/tests/auto/render/textures/tst_textures.cpp
+++ b/tests/auto/render/textures/tst_textures.cpp
@@ -52,11 +52,11 @@ class TestImageDataGenerator : public Qt3DRender::QTextureImageDataGenerator
public:
TestImageDataGenerator(int id) : m_id(id) {}
- Qt3DRender::QTextureImageDataPtr operator ()() {
+ Qt3DRender::QTextureImageDataPtr operator ()() Q_DECL_OVERRIDE {
return Qt3DRender::QTextureImageDataPtr::create();
}
- bool operator ==(const Qt3DRender::QTextureImageDataGenerator &other) const {
+ bool operator ==(const Qt3DRender::QTextureImageDataGenerator &other) const Q_DECL_OVERRIDE {
const TestImageDataGenerator *otherFunctor = functor_cast<TestImageDataGenerator>(&other);
return (otherFunctor != Q_NULLPTR && otherFunctor->m_id == m_id);
}
@@ -73,11 +73,11 @@ class TestTextureGenerator : public Qt3DRender::QTextureGenerator
public:
TestTextureGenerator(int id) : m_id(id) {}
- Qt3DRender::QTextureDataPtr operator ()() {
+ Qt3DRender::QTextureDataPtr operator ()() Q_DECL_OVERRIDE {
return Qt3DRender::QTextureDataPtr::create();
}
- bool operator ==(const Qt3DRender::QTextureGenerator &other) const {
+ bool operator ==(const Qt3DRender::QTextureGenerator &other) const Q_DECL_OVERRIDE {
const TestTextureGenerator *otherFunctor = functor_cast<TestTextureGenerator>(&other);
return (otherFunctor != Q_NULLPTR && otherFunctor->m_id == m_id);
}