diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-04-03 17:22:27 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-04-04 16:36:17 +0200 |
commit | d57ddaefd37e6a19d3a6937fbf9a655dbafcdba5 (patch) | |
tree | 56f50116805e8ae7d2287c934e6ccc073142d0ce /fastos/src/tests/processtest.cpp | |
parent | 3dab091fd0ec3ffd71af3e19e55ed3a4437b8d8b (diff) |
Use override
Diffstat (limited to 'fastos/src/tests/processtest.cpp')
-rw-r--r-- | fastos/src/tests/processtest.cpp | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/fastos/src/tests/processtest.cpp b/fastos/src/tests/processtest.cpp index 0e1573dbe2e..a4b1e38b03b 100644 --- a/fastos/src/tests/processtest.cpp +++ b/fastos/src/tests/processtest.cpp @@ -42,7 +42,7 @@ public: _counterLock->Unlock(); } - void OnReceiveData (const void *data, size_t length) + void OnReceiveData (const void *data, size_t length) override { _receivedBytes += length; if(data != NULL) @@ -78,7 +78,7 @@ public: { } - void Run (FastOS_ThreadInterface *thisThread, void *arg) + void Run (FastOS_ThreadInterface *thisThread, void *arg) override { (void)thisThread; (void)arg; @@ -110,15 +110,11 @@ public: class ProcessTest : public BaseTest { private: - virtual bool useProcessStarter() const { return true; } - virtual bool useIPCHelper() const { return true; } - ProcessTest(const ProcessTest&); - ProcessTest& operator=(const ProcessTest&); - - int GetLastError () - { - return errno; - } + bool useProcessStarter() const override { return true; } + bool useIPCHelper() const override { return true; } + ProcessTest(const ProcessTest&); + ProcessTest& operator=(const ProcessTest&); + int GetLastError () const { return errno; } // Flag which indicates whether an IPC message is received // or not. @@ -135,7 +131,7 @@ public: { } - void OnReceivedIPCMessage (const void *data, size_t length) + void OnReceivedIPCMessage (const void *data, size_t length) override { // printf("Data: [%s]\n", static_cast<const char *>(data)); @@ -441,7 +437,7 @@ public: PrintSeparator(); } - int Main () + int Main () override { // This process is started as either a parent or a child. // When the parent role is desired, a child program is supplied |