diff options
Diffstat (limited to 'examples/corelib/threads/semaphores/semaphores.cpp')
-rw-r--r-- | examples/corelib/threads/semaphores/semaphores.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/corelib/threads/semaphores/semaphores.cpp b/examples/corelib/threads/semaphores/semaphores.cpp index f44f709d72..37dd4cda20 100644 --- a/examples/corelib/threads/semaphores/semaphores.cpp +++ b/examples/corelib/threads/semaphores/semaphores.cpp @@ -68,7 +68,7 @@ class Producer : public QThread //! [1] //! [2] { public: - void run() Q_DECL_OVERRIDE + void run() override { qsrand(QTime(0,0,0).secsTo(QTime::currentTime())); for (int i = 0; i < DataSize; ++i) { @@ -86,7 +86,7 @@ class Consumer : public QThread { Q_OBJECT public: - void run() Q_DECL_OVERRIDE + void run() override { for (int i = 0; i < DataSize; ++i) { usedBytes.acquire(); |