summaryrefslogtreecommitdiff
path: root/TAO/examples/Simple/bank
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Simple/bank')
-rw-r--r--TAO/examples/Simple/bank/AccountManager_i.cpp4
-rw-r--r--TAO/examples/Simple/bank/AccountManager_i.h6
-rw-r--r--TAO/examples/Simple/bank/Account_i.cpp8
-rw-r--r--TAO/examples/Simple/bank/Account_i.h8
-rw-r--r--TAO/examples/Simple/bank/Bank_Client_i.cpp12
-rw-r--r--TAO/examples/Simple/bank/Bank_Client_i.h12
6 files changed, 25 insertions, 25 deletions
diff --git a/TAO/examples/Simple/bank/AccountManager_i.cpp b/TAO/examples/Simple/bank/AccountManager_i.cpp
index 35010cece90..6dcb1c83216 100644
--- a/TAO/examples/Simple/bank/AccountManager_i.cpp
+++ b/TAO/examples/Simple/bank/AccountManager_i.cpp
@@ -10,7 +10,7 @@ AccountManager_i::AccountManager_i (void) :
}
// Destructor
-AccountManager_i::~AccountManager_i (void)
+AccountManager_i::~AccountManager_i ()
{
}
@@ -114,7 +114,7 @@ AccountManager_i::close (Bank::Account_ptr account)
}
void
-AccountManager_i::shutdown (void)
+AccountManager_i::shutdown ()
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("\n[SERVER] Process/Thread Id : (%P/%t) AccountManager_i is shutting down\n")));
diff --git a/TAO/examples/Simple/bank/AccountManager_i.h b/TAO/examples/Simple/bank/AccountManager_i.h
index b18f8c00829..a948759e161 100644
--- a/TAO/examples/Simple/bank/AccountManager_i.h
+++ b/TAO/examples/Simple/bank/AccountManager_i.h
@@ -45,10 +45,10 @@ class AccountManager_i : public POA_Bank::AccountManager
{
public:
/// Constructor.
- AccountManager_i (void);
+ AccountManager_i ();
/// Destructor.
- virtual ~AccountManager_i (void);
+ virtual ~AccountManager_i ();
/// Return the Account interface with the given name from the server.
/// Put the initial balance specified in the new account.
@@ -59,7 +59,7 @@ public:
virtual void close (Bank::Account_ptr);
/// Shutdown the server.
- virtual void shutdown (void);
+ virtual void shutdown ();
/// Set the ORB pointer.
void orb (CORBA::ORB_ptr o);
diff --git a/TAO/examples/Simple/bank/Account_i.cpp b/TAO/examples/Simple/bank/Account_i.cpp
index e301f7fab97..5b2fb3a7954 100644
--- a/TAO/examples/Simple/bank/Account_i.cpp
+++ b/TAO/examples/Simple/bank/Account_i.cpp
@@ -1,7 +1,7 @@
#include "Account_i.h"
// Constructor
-Account_i::Account_i (void)
+Account_i::Account_i ()
{
}
@@ -13,7 +13,7 @@ Account_i::Account_i (const char *name,
}
// Destructor
-Account_i::~Account_i (void)
+Account_i::~Account_i ()
{
}
@@ -26,7 +26,7 @@ Account_i::orb (CORBA::ORB_ptr o)
// Return the current balance on the server.
CORBA::Float
-Account_i::balance (void)
+Account_i::balance ()
{
return balance_;
}
@@ -47,7 +47,7 @@ Account_i::withdraw (CORBA::Float withdrawl)
}
char *
-Account_i::name (void)
+Account_i::name ()
{
return CORBA::string_dup (this->name_.in ());
}
diff --git a/TAO/examples/Simple/bank/Account_i.h b/TAO/examples/Simple/bank/Account_i.h
index bbdfa6775ac..9e20a47f7b2 100644
--- a/TAO/examples/Simple/bank/Account_i.h
+++ b/TAO/examples/Simple/bank/Account_i.h
@@ -29,19 +29,19 @@ class Account_i : public POA_Bank::Account
{
public:
/// Constructor.
- Account_i (void);
+ Account_i ();
/// Constructor.
Account_i (const char *, CORBA::Float);
/// Destructor.
- virtual ~Account_i (void);
+ virtual ~Account_i ();
/// Get the current balance in the account.
- virtual CORBA::Float balance (void);
+ virtual CORBA::Float balance ();
/// Get the name of the <Account> holder.
- virtual char *name (void);
+ virtual char *name ();
/// Set the name of the <Account> holder.
virtual void name (const char *name);
diff --git a/TAO/examples/Simple/bank/Bank_Client_i.cpp b/TAO/examples/Simple/bank/Bank_Client_i.cpp
index b8a5a874fc4..6192e1b171b 100644
--- a/TAO/examples/Simple/bank/Bank_Client_i.cpp
+++ b/TAO/examples/Simple/bank/Bank_Client_i.cpp
@@ -6,13 +6,13 @@
// This is the interface program that accesses the remote object
// Constructor.
-Bank_Client_i::Bank_Client_i (void)
+Bank_Client_i::Bank_Client_i ()
{
//no-op
}
//Destructor.
-Bank_Client_i::~Bank_Client_i (void)
+Bank_Client_i::~Bank_Client_i ()
{
//no-op
}
@@ -42,7 +42,7 @@ Bank_Client_i::run (const char *name,
}
int
-Bank_Client_i::check_accounts (void)
+Bank_Client_i::check_accounts ()
{
try
{
@@ -69,7 +69,7 @@ Bank_Client_i::check_accounts (void)
// This method tests whether an account with a
// a same name can be opened
void
-Bank_Client_i::test_for_same_name (void)
+Bank_Client_i::test_for_same_name ()
{
const char *name = "Name";
CORBA::Float initial_bal = 0.00;
@@ -87,7 +87,7 @@ Bank_Client_i::test_for_same_name (void)
// This method tests whether an account with different names can be opened
void
-Bank_Client_i::test_for_different_name (void)
+Bank_Client_i::test_for_different_name ()
{
const char *name1 = "Name1";
const char *name2 = "Name2";
@@ -108,7 +108,7 @@ Bank_Client_i::test_for_different_name (void)
// This method tests the Overdraft exception.
void
-Bank_Client_i::test_for_overdraft (void)
+Bank_Client_i::test_for_overdraft ()
{
CORBA::Float initial_bal = 100.0;
const char *name = "Name";
diff --git a/TAO/examples/Simple/bank/Bank_Client_i.h b/TAO/examples/Simple/bank/Bank_Client_i.h
index 944707d5e36..7d040afd661 100644
--- a/TAO/examples/Simple/bank/Bank_Client_i.h
+++ b/TAO/examples/Simple/bank/Bank_Client_i.h
@@ -29,29 +29,29 @@ class Bank_Client_i
{
public:
/// Constructor
- Bank_Client_i (void);
+ Bank_Client_i ();
/// Destructor
- ~Bank_Client_i (void);
+ ~Bank_Client_i ();
/// Execute the methods.
int run (const char *, int, ACE_TCHAR *[]);
private:
/// Method that calls all the test functions
- int check_accounts (void);
+ int check_accounts ();
/// Tests if accounts opened with different names return a different account
/// reference.
- void test_for_different_name (void);
+ void test_for_different_name ();
/// Tests if accounts opened with the same name return the same
/// object reference.
- void test_for_same_name (void);
+ void test_for_same_name ();
/// Tests for the Overdraft Exception when the client tries to
/// withdraw more money than the current balance.
- void test_for_overdraft (void);
+ void test_for_overdraft ();
/// Instantiate the client object.
Client<Bank::AccountManager> client_;