summaryrefslogtreecommitdiff
path: root/ACE/tests
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2020-08-11 13:55:11 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2020-08-11 13:55:11 +0200
commit1fd62332d6fb341deb28dc92c9128fa3346908db (patch)
tree18ce746c31244995eb0b44c56343e232c305d63d /ACE/tests
parent6ef233f574afae7756d7e00fcfc2dc726003dd60 (diff)
downloadATCD-1fd62332d6fb341deb28dc92c9128fa3346908db.tar.gz
Mark single argument constructors explicit
* ACE/tests/Bound_Ptr_Test.cpp: * ACE/tests/Intrusive_Auto_Ptr_Test.cpp: * ACE/tests/Refcounted_Auto_Ptr_Test.cpp:
Diffstat (limited to 'ACE/tests')
-rw-r--r--ACE/tests/Bound_Ptr_Test.cpp2
-rw-r--r--ACE/tests/Intrusive_Auto_Ptr_Test.cpp4
-rw-r--r--ACE/tests/Refcounted_Auto_Ptr_Test.cpp2
3 files changed, 3 insertions, 5 deletions
diff --git a/ACE/tests/Bound_Ptr_Test.cpp b/ACE/tests/Bound_Ptr_Test.cpp
index 85b7fdafe0a..9b663caafdb 100644
--- a/ACE/tests/Bound_Ptr_Test.cpp
+++ b/ACE/tests/Bound_Ptr_Test.cpp
@@ -177,7 +177,7 @@ Printer::print (void)
class Method_Request_print : public ACE_Method_Request
{
public:
- Method_Request_print (Printer_var &printer);
+ explicit Method_Request_print (Printer_var &printer);
virtual ~Method_Request_print (void);
/// This is the entry point into the Active Object method.
diff --git a/ACE/tests/Intrusive_Auto_Ptr_Test.cpp b/ACE/tests/Intrusive_Auto_Ptr_Test.cpp
index fca362e4b45..fd6e5bc72a3 100644
--- a/ACE/tests/Intrusive_Auto_Ptr_Test.cpp
+++ b/ACE/tests/Intrusive_Auto_Ptr_Test.cpp
@@ -21,7 +21,7 @@ class One {
int ref;
public:
- One (int refcount) : ref(refcount)
+ explicit One (int refcount) : ref(refcount)
{
released = false;
}
@@ -59,8 +59,6 @@ One::intrusive_remove_ref (One *one) {
delete one;
}
-
-
int run_main (int, ACE_TCHAR *[])
{
ACE_START_TEST (ACE_TEXT ("Intrusive_Auto_Ptr_Test"));
diff --git a/ACE/tests/Refcounted_Auto_Ptr_Test.cpp b/ACE/tests/Refcounted_Auto_Ptr_Test.cpp
index eec98b893ef..a8b8049fdb7 100644
--- a/ACE/tests/Refcounted_Auto_Ptr_Test.cpp
+++ b/ACE/tests/Refcounted_Auto_Ptr_Test.cpp
@@ -106,7 +106,7 @@ private:
class Method_Request_print : public ACE_Method_Request
{
public:
- Method_Request_print (Printer_var &printer);
+ explicit Method_Request_print (Printer_var &printer);
virtual ~Method_Request_print (void);
/// This is the entry point into the Active Object method.