summaryrefslogtreecommitdiff
path: root/ACE/tests
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-06-22 14:24:35 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-06-22 14:24:35 +0200
commit16b803df3f89ccbaab85bc75c8950fd3f891f5db (patch)
treef9eb30a6569bcc89f05153f43cb66419b6b130db /ACE/tests
parentbcd7675d8dd8a4821981fc4afc619c54bc9125b5 (diff)
downloadATCD-16b803df3f89ccbaab85bc75c8950fd3f891f5db.tar.gz
Use override, removed redundant void
* ACE/tests/DLL_Test.h: * ACE/tests/DLL_Test_Impl.h: * ACE/tests/DLL_Test_Parent.h:
Diffstat (limited to 'ACE/tests')
-rw-r--r--ACE/tests/DLL_Test.h17
-rw-r--r--ACE/tests/DLL_Test_Impl.h10
-rw-r--r--ACE/tests/DLL_Test_Parent.h6
3 files changed, 15 insertions, 18 deletions
diff --git a/ACE/tests/DLL_Test.h b/ACE/tests/DLL_Test.h
index 759de4429f2..e6e2d25a512 100644
--- a/ACE/tests/DLL_Test.h
+++ b/ACE/tests/DLL_Test.h
@@ -31,7 +31,7 @@ class Hello
{
public:
/// Destructor
- virtual ~Hello (void)
+ virtual ~Hello ()
{
ACE_TRACE ("Hello::~Hello");
}
@@ -43,30 +43,29 @@ public:
* methods implemented in the shared library.
*/
//@{
- void say_hello (void)
+ void say_hello ()
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("Hello\n")));
}
- virtual void say_next (void) = 0;
+ virtual void say_next () = 0;
- virtual ACE_TCHAR *new_info (void) = 0;
+ virtual ACE_TCHAR *new_info () = 0;
- virtual ACE_TCHAR *malloc_info (void) = 0;
+ virtual ACE_TCHAR *malloc_info () = 0;
//@}
};
-
// Used to test dynamic_cast<> in shared libraries.
class ACE_Svc_Export Child : public Parent
{
public:
- Child (void);
+ Child ();
- virtual ~Child (void);
+ virtual ~Child ();
- virtual void test (void);
+ virtual void test ();
};
#endif /* ACE_TESTS_DLL_TEST_H */
diff --git a/ACE/tests/DLL_Test_Impl.h b/ACE/tests/DLL_Test_Impl.h
index 97db4904e42..8c3633e4f90 100644
--- a/ACE/tests/DLL_Test_Impl.h
+++ b/ACE/tests/DLL_Test_Impl.h
@@ -31,19 +31,19 @@ class Hello_Impl : public Hello
{
public:
/// Constructor
- Hello_Impl (void);
+ Hello_Impl ();
/// Destructor
- ~Hello_Impl (void);
+ ~Hello_Impl ();
/// See the documentation in the base class
- void say_next (void);
+ void say_next () override;
/// Uses ACE::strnew() to allocate the returned string.
- ACE_TCHAR *new_info (void);
+ ACE_TCHAR *new_info () override;
/// Uses ACE_OS::malloc() to allocate the returned string.
- ACE_TCHAR *malloc_info (void);
+ ACE_TCHAR *malloc_info () override;
// Overload the new/delete opertors so the object will be
// created/deleted using the memory allocator associated with the
diff --git a/ACE/tests/DLL_Test_Parent.h b/ACE/tests/DLL_Test_Parent.h
index d45dc64bf62..62e29781912 100644
--- a/ACE/tests/DLL_Test_Parent.h
+++ b/ACE/tests/DLL_Test_Parent.h
@@ -22,11 +22,9 @@
class DLL_Test_Parent_Export Parent
{
public:
+ virtual ~Parent ();
- virtual ~Parent (void);
-
- virtual void test (void);
-
+ virtual void test ();
};
#endif /* ACE_TESTS_DLL_TEST_PARENT_H */