diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
commit | 5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch) | |
tree | 5967e9ca7d44ed1d2823be9746817ebb8e025f5d /TAO/examples/Simple/chat/Broadcaster_i.h | |
parent | 2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff) | |
download | ATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz |
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'TAO/examples/Simple/chat/Broadcaster_i.h')
-rw-r--r-- | TAO/examples/Simple/chat/Broadcaster_i.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/TAO/examples/Simple/chat/Broadcaster_i.h b/TAO/examples/Simple/chat/Broadcaster_i.h index 87e54162477..2b4958ef096 100644 --- a/TAO/examples/Simple/chat/Broadcaster_i.h +++ b/TAO/examples/Simple/chat/Broadcaster_i.h @@ -17,13 +17,18 @@ // // =========================================================== -#if !defined (BROADCASTER_I_H) +#ifndef BROADCASTER_I_H #define BROADCASTER_I_H #include "BroadcasterS.h" #include "ReceiverC.h" #include "tao/TAO.h" #include "ace/Containers.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/SString.h" class Broadcaster_i : public POA_Broadcaster @@ -40,17 +45,17 @@ public: // Destructor. virtual void add (Receiver_ptr receiver, - const char *nickname, - CORBA::Environment &TAO_TRY_ENV); + const char *nickname, + CORBA::Environment &TAO_TRY_ENV); // Saves receiver references in a list. virtual void remove (Receiver_ptr receiver, - CORBA::Environment &TAO_TRY_ENV); + CORBA::Environment &TAO_TRY_ENV); // Removes receiver references from the list. virtual void say (Receiver_ptr receiver, - const char *text, - CORBA::Environment &TAO_TRY_ENV); + const char *text, + CORBA::Environment &TAO_TRY_ENV); // Called by Broadcaster clients to send messages. public: @@ -58,7 +63,7 @@ public: // The ORB manager. void broadcast (const char* text, - CORBA::Environment &TAO_TRY_ENV); + CORBA::Environment &TAO_TRY_ENV); // Broadcasts the text to all registered clients. class Receiver_Data @@ -82,7 +87,7 @@ public: typedef ACE_Unbounded_Set<Receiver_Data> RECEIVER_SET; typedef ACE_Unbounded_Set_Iterator<Receiver_Data> - RECEIVER_SET_ITERATOR; + RECEIVER_SET_ITERATOR; RECEIVER_SET receiver_set_; // Set of registered clients. |