summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdullah Sowayan <sowayan@users.noreply.github.com>2007-05-28 12:29:03 +0000
committerAbdullah Sowayan <sowayan@users.noreply.github.com>2007-05-28 12:29:03 +0000
commitb4993efa64de3a513584cd66c21243b236aadc39 (patch)
tree68c47e912714edb8d711e964f18eebeaa8097f97
parentd920b0f259586e4f9a98c29e0682334e21b561ab (diff)
downloadATCD-b4993efa64de3a513584cd66c21243b236aadc39.tar.gz
Mon May 28 12:29:13 UTC 2007 Abdullah Sowayan <abdullah.sowayan@lmco.com>
-rw-r--r--TAO/ChangeLog9
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Driver.cpp6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp2
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp16
4 files changed, 21 insertions, 12 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog
index 7c4e67fa7de..b9601b6c5b7 100644
--- a/TAO/ChangeLog
+++ b/TAO/ChangeLog
@@ -1,3 +1,12 @@
+Mon May 28 12:29:13 UTC 2007 Abdullah Sowayan <abdullah.sowayan@lmco.com>
+
+ * orbsvcs/tests/Notify/lib/Driver.cpp:
+ * orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp:
+ * orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp:
+
+ Addressed the "assignment within conditional expression" warning
+ on the WinXP_VC71_WarningLevel4 build.
+
Mon May 28 05:06:55 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
* tests/RTCORBA/Explicit_Binding/run_test.pl:
diff --git a/TAO/orbsvcs/tests/Notify/lib/Driver.cpp b/TAO/orbsvcs/tests/Notify/lib/Driver.cpp
index ed2088a7f4b..fd5e5227abf 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Driver.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Driver.cpp
@@ -186,7 +186,7 @@ TAO_Notify_Tests_Driver::parse_args (int argc, char *argv[])
while (arg_shifter.is_anything_left ())
{
- if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-Timeout")))) // -Timeout timeout_period_S
+ if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-Timeout")))) // -Timeout timeout_period_S
{
if (current_arg != 0)
{
@@ -195,7 +195,7 @@ TAO_Notify_Tests_Driver::parse_args (int argc, char *argv[])
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-IORoutput")))) // -IORoutput file_name
+ else if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-IORoutput")))) // -IORoutput file_name
{
if (this->activation_manager_->ior_output_file (current_arg) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -204,7 +204,7 @@ TAO_Notify_Tests_Driver::parse_args (int argc, char *argv[])
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-IORinput")))) // -IORinput file_name
+ else if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-IORinput")))) // -IORinput file_name
{
if (this->activation_manager_->ior_input_file (current_arg) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp
index a4cf175e466..8f63209d643 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp
@@ -51,7 +51,7 @@ TAO_Notify_Tests_Periodic_Consumer::init_state (ACE_Arg_Shifter& arg_shifter)
while (arg_shifter.is_anything_left ())
{
- if ((current_arg = arg_shifter.get_the_parameter ("-MaxCount")))
+ if (0 != (current_arg = arg_shifter.get_the_parameter ("-MaxCount")))
{
this->max_count_ = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp
index 59456515806..ca25948b82c 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp
@@ -55,7 +55,7 @@ TAO_Notify_Tests_Periodic_Supplier::init_state (ACE_Arg_Shifter& arg_shifter)
while (arg_shifter.is_anything_left ())
{
- if ((current_arg = arg_shifter.get_the_parameter ("-EventType")))
+ if (0 != (current_arg = arg_shifter.get_the_parameter ("-EventType")))
{
this->event_.type ("*", current_arg) ;
zeroth_event.type ("*", current_arg) ;
@@ -78,7 +78,7 @@ TAO_Notify_Tests_Periodic_Supplier::init_state (ACE_Arg_Shifter& arg_shifter)
this->event_.filter (name.c_str (), buffer);
}
- else if ((current_arg = arg_shifter.get_the_parameter ("-Priority")))
+ else if (0 != (current_arg = arg_shifter.get_the_parameter ("-Priority")))
{
priority_ = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
@@ -87,22 +87,22 @@ TAO_Notify_Tests_Periodic_Supplier::init_state (ACE_Arg_Shifter& arg_shifter)
buffer <<= (CORBA::Short) this->priority_;
this->event_.qos (CosNotification::Priority, buffer);
}
- else if ((current_arg = arg_shifter.get_the_parameter ("-Period")))
+ else if (0 != (current_arg = arg_shifter.get_the_parameter ("-Period")))
{
period_ = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter ("-ExecTime")))
+ else if (0 != (current_arg = arg_shifter.get_the_parameter ("-ExecTime")))
{
exec_time_ = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter ("-Phase")))
+ else if (0 != (current_arg = arg_shifter.get_the_parameter ("-Phase")))
{
phase_ = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter ("-Iter")))
+ else if (0 != (current_arg = arg_shifter.get_the_parameter ("-Iter")))
{
iter_ = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
@@ -110,12 +110,12 @@ TAO_Notify_Tests_Periodic_Supplier::init_state (ACE_Arg_Shifter& arg_shifter)
if (stats_.init (iter_) == -1)
return -1;
}
- else if ((current_arg = arg_shifter.get_the_parameter ("-Load")))
+ else if (0 != (current_arg = arg_shifter.get_the_parameter ("-Load")))
{
load_ = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter ("-RunTime"))) // in seconds
+ else if (0 != (current_arg = arg_shifter.get_the_parameter ("-RunTime"))) // in seconds
{
run_time_ = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();