diff options
-rw-r--r-- | ACE/ChangeLog | 6 | ||||
-rw-r--r-- | ACE/tests/Compiler_Features_13_Test.cpp | 13 | ||||
-rw-r--r-- | ACE/tests/Intrusive_Auto_Ptr_Test.cpp | 2 |
3 files changed, 15 insertions, 6 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog index d28b5db1fba..b5423de13f8 100644 --- a/ACE/ChangeLog +++ b/ACE/ChangeLog @@ -1,3 +1,9 @@ +Fri Jun 21 07:42:02 UTC 2013 Johnny Willemsen <jwillemsen@remedy.nl> + + * tests/Compiler_Features_13_Test.cpp: + * tests/Intrusive_Auto_Ptr_Test.cpp: + Fixed some coverity reported errors + Thu Jun 20 16:24:03 UTC 2013 Phil Mesnier <mesnier_p@ociweb.com> * protocols/ace/INet/FTP_Response.h: diff --git a/ACE/tests/Compiler_Features_13_Test.cpp b/ACE/tests/Compiler_Features_13_Test.cpp index f082b855c27..59395a1e942 100644 --- a/ACE/tests/Compiler_Features_13_Test.cpp +++ b/ACE/tests/Compiler_Features_13_Test.cpp @@ -84,12 +84,15 @@ run_main (int, ACE_TCHAR *[]) ACE_ERROR((LM_ERROR, ACE_TEXT("dynamic_cast returns null, expected value\n"))); } - d1->value = 42; - if (d.value != 42) + else { - ACE_ERROR((LM_ERROR, - ACE_TEXT("Wrong value after dynamic_cast, expected %d, got %d\n"), - 42, d.value)); + d1->value = 42; + if (d.value != 42) + { + ACE_ERROR((LM_ERROR, + ACE_TEXT("Wrong value after dynamic_cast, expected %d, got %d\n"), + 42, d.value)); + } } // Make sure dynamic cast detects invalid casts diff --git a/ACE/tests/Intrusive_Auto_Ptr_Test.cpp b/ACE/tests/Intrusive_Auto_Ptr_Test.cpp index 4be3c25f0ac..5f0b5fe4f09 100644 --- a/ACE/tests/Intrusive_Auto_Ptr_Test.cpp +++ b/ACE/tests/Intrusive_Auto_Ptr_Test.cpp @@ -28,7 +28,7 @@ class One { int ref; public: - One (int refcount): ref(refcount) + One (int refcount) : m2(0), ref(refcount) { released = false; } |