summaryrefslogtreecommitdiff
path: root/TAO/examples/Simple/bank
diff options
context:
space:
mode:
authorkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-01 23:58:32 +0000
committerkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-01 23:58:32 +0000
commit3added0842c7a9ee02390804f376735581bd6d25 (patch)
tree7de2fe1865c186171fb534807168008c5cc16cb9 /TAO/examples/Simple/bank
parent6db09dc2d2a3939ea3b92ea8c9c678077c34d3e2 (diff)
downloadATCD-3added0842c7a9ee02390804f376735581bd6d25.tar.gz
ChangeLogTag: Sun Apr 1 18:47:32 2001 Krishnakumar B <kitty@cs.wustl.edu>
Diffstat (limited to 'TAO/examples/Simple/bank')
-rw-r--r--TAO/examples/Simple/bank/Bank_Client_i.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/TAO/examples/Simple/bank/Bank_Client_i.cpp b/TAO/examples/Simple/bank/Bank_Client_i.cpp
index 75ebde8c975..a26d169690c 100644
--- a/TAO/examples/Simple/bank/Bank_Client_i.cpp
+++ b/TAO/examples/Simple/bank/Bank_Client_i.cpp
@@ -135,17 +135,18 @@ Bank_Client_i::test_for_overdraft (CORBA::Environment &ACE_TRY_ENV)
CORBA::Float initial_bal = 100.0;
const char *name = "Name";
-
- Bank::Account_var acct_id = client->open (name,
- initial_bal,
- ACE_TRY_ENV);
- acct_id->deposit (100.00,
- ACE_TRY_ENV);
-
- acct_id->withdraw (acct_id->balance (ACE_TRY_ENV) + 20);
-
- client->close (acct_id.in (),
- ACE_TRY_ENV);
+ Bank::Account_var acct_id = client->open (name, initial_bal, ACE_TRY_ENV);
+ ACE_CHECK;
+ acct_id->deposit (100.00, ACE_TRY_ENV);
+ ACE_CHECK;
+
+ CORBA::Float bal = acct_id->balance (ACE_TRY_ENV);
+ ACE_CHECK;
+
+ acct_id->withdraw (bal + 20);
+
+ client->close (acct_id.in (), ACE_TRY_ENV);
+ ACE_CHECK;
}
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)