From 8a24db96f21b30ee665e199c6ac63fb09cbb41d7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 6 Feb 2020 12:18:28 +0530 Subject: [PATCH] Mark overridden methods to suppress warnings from clang --- src/calibre/headless/headless_integration.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/calibre/headless/headless_integration.h b/src/calibre/headless/headless_integration.h index 5d32f363a9..5c1316639b 100644 --- a/src/calibre/headless/headless_integration.h +++ b/src/calibre/headless/headless_integration.h @@ -36,13 +36,13 @@ public: explicit HeadlessIntegration(const QStringList ¶meters); ~HeadlessIntegration(); - bool hasCapability(QPlatformIntegration::Capability cap) const; - QPlatformFontDatabase *fontDatabase() const; + bool hasCapability(QPlatformIntegration::Capability cap) const override; + QPlatformFontDatabase *fontDatabase() const override; - QPlatformWindow *createPlatformWindow(QWindow *window) const; - QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const; - QAbstractEventDispatcher *createEventDispatcher() const; - QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const; + QPlatformWindow *createPlatformWindow(QWindow *window) const override; + QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const override; + QAbstractEventDispatcher *createEventDispatcher() const override; + QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const override; QStringList themeNames() const override; QPlatformTheme *createPlatformTheme(const QString &name) const override; @@ -50,7 +50,7 @@ public: static HeadlessIntegration *instance(); - virtual QPlatformServices *services() const { return platform_services.data(); } + virtual QPlatformServices *services() const override { return platform_services.data(); } private: QScopedPointer m_fontDatabase;