diff options
author | Zeno Albisser <zeno.albisser@digia.com> | 2013-11-06 17:15:12 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-14 15:43:48 +0100 |
commit | 496f66ee52214ac614135c736f7d89c4dd08ba14 (patch) | |
tree | bd4de6a9909846b53f1edbd58d2914e16ef5f2d1 /lib/content_browser_client_qt.cpp | |
parent | e1f0ec1af9bcef187bc132e29101b3f7c9c367c1 (diff) |
Mark functions with Q_DECL_OVERRIDE where necessary.
Change-Id: I15261c3737a3284b99308453132f09ee7889c444
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Diffstat (limited to 'lib/content_browser_client_qt.cpp')
-rw-r--r-- | lib/content_browser_client_qt.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/content_browser_client_qt.cpp b/lib/content_browser_client_qt.cpp index 82587bf8d..dbe5ca2f4 100644 --- a/lib/content_browser_client_qt.cpp +++ b/lib/content_browser_client_qt.cpp @@ -93,35 +93,35 @@ public: { } - virtual void Run(Delegate *delegate) + virtual void Run(Delegate *delegate) Q_DECL_OVERRIDE { // FIXME: This could be needed if we want to run Chromium tests. // We could run a QEventLoop here. } - virtual void Quit() + virtual void Quit() Q_DECL_OVERRIDE { Q_UNREACHABLE(); } - virtual void ScheduleWork() + virtual void ScheduleWork() Q_DECL_OVERRIDE { QCoreApplication::postEvent(this, new QEvent(QEvent::User)); } - virtual void ScheduleDelayedWork(const base::TimeTicks &delayed_work_time) + virtual void ScheduleDelayedWork(const base::TimeTicks &delayed_work_time) Q_DECL_OVERRIDE { startTimer(GetTimeIntervalMilliseconds(delayed_work_time)); } protected: - virtual void customEvent(QEvent *ev) + virtual void customEvent(QEvent *ev) Q_DECL_OVERRIDE { if (handleScheduledWork()) QCoreApplication::postEvent(this, new QEvent(QEvent::User)); } - virtual void timerEvent(QTimerEvent *ev) + virtual void timerEvent(QTimerEvent *ev) Q_DECL_OVERRIDE { killTimer(ev->timerId()); @@ -229,15 +229,15 @@ public: Q_UNREACHABLE(); } - virtual void* GetHandle() { return m_handle; } + virtual void* GetHandle() Q_DECL_OVERRIDE { return m_handle; } // We don't care about the rest, this context shouldn't be used except for its handle. - virtual bool Initialize(gfx::GLSurface *, gfx::GpuPreference) { Q_UNREACHABLE(); return false; } - virtual void Destroy() { Q_UNREACHABLE(); } - virtual bool MakeCurrent(gfx::GLSurface *) { Q_UNREACHABLE(); return false; } - virtual void ReleaseCurrent(gfx::GLSurface *) { Q_UNREACHABLE(); } - virtual bool IsCurrent(gfx::GLSurface *) { Q_UNREACHABLE(); return false; } - virtual void SetSwapInterval(int) { Q_UNREACHABLE(); } + virtual bool Initialize(gfx::GLSurface *, gfx::GpuPreference) Q_DECL_OVERRIDE { Q_UNREACHABLE(); return false; } + virtual void Destroy() Q_DECL_OVERRIDE { Q_UNREACHABLE(); } + virtual bool MakeCurrent(gfx::GLSurface *) Q_DECL_OVERRIDE { Q_UNREACHABLE(); return false; } + virtual void ReleaseCurrent(gfx::GLSurface *) Q_DECL_OVERRIDE { Q_UNREACHABLE(); } + virtual bool IsCurrent(gfx::GLSurface *) Q_DECL_OVERRIDE { Q_UNREACHABLE(); return false; } + virtual void SetSwapInterval(int) Q_DECL_OVERRIDE { Q_UNREACHABLE(); } private: void *m_handle; |