summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2004-04-13 19:08:50 +0000
committerSteve Huston <shuston@riverace.com>2004-04-13 19:08:50 +0000
commite3c8c3eb9a652fa7309e26f910ce5da3a6f8ca98 (patch)
tree4ddb7f6f1aa50057cb00c7ac57627083b7cdb0f6 /examples
parent87fdba63afb1830ca15cb044f344d19061ce310d (diff)
downloadATCD-e3c8c3eb9a652fa7309e26f910ce5da3a6f8ca98.tar.gz
ChangeLogTag:Wed Apr 7 12:27:19 2004 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/Log_Msg/Log_Msg_MFC/MFC_Log.h18
-rw-r--r--examples/TMCast/Member/member.cpp6
2 files changed, 14 insertions, 10 deletions
diff --git a/examples/Log_Msg/Log_Msg_MFC/MFC_Log.h b/examples/Log_Msg/Log_Msg_MFC/MFC_Log.h
index 1b887a402c3..657b0e8a914 100644
--- a/examples/Log_Msg/Log_Msg_MFC/MFC_Log.h
+++ b/examples/Log_Msg/Log_Msg_MFC/MFC_Log.h
@@ -22,22 +22,24 @@ class ACE_Log_Record;
/**
* @class MFC_Log
*
- * @brief A callback class for ACE_Log_Msg which sends output to Microsoft debugger
+ * @brief A callback class for ACE_Log_Msg which sends output to
+ * Microsoft debugger
*
* Register this class as a MSG_CALLBACK with the ACE_Log_Msg singleton and
- * send debug output to the Microsoft debugger console window with ACE_DEBUG macros.
+ * send debug output to the Microsoft debugger console window with
+ * ACE_DEBUG macros.
*/
class MFC_Log : public virtual ACE_Log_Msg_Callback
{
public:
- /// Constructor
- MFC_Log();
+ /// Constructor
+ MFC_Log();
- /// method called by ACE_Log_Msg to log an event
- void log(ACE_Log_Record& log_record);
+ /// method called by ACE_Log_Msg to log an event
+ void log(ACE_Log_Record& log_record);
- /// destructor
- virtual ~MFC_Log();
+ /// destructor
+ virtual ~MFC_Log();
};
diff --git a/examples/TMCast/Member/member.cpp b/examples/TMCast/Member/member.cpp
index e6bee67277a..d6abd081b70 100644
--- a/examples/TMCast/Member/member.cpp
+++ b/examples/TMCast/Member/member.cpp
@@ -51,8 +51,10 @@ main (int argc, char* argv[])
{
// Sleep some random time around 1 sec.
- ACE_UINT64 tmpl = 1000000U;
- unsigned long t = (tmpl * ACE_OS::rand ()) / RAND_MAX;
+ ACE_UINT64 tmpl = 1000000U;
+ unsigned long t =
+ ACE_static_cast (unsigned long,
+ ((tmpl * ACE_OS::rand ()) / RAND_MAX));
// ACE_DEBUG ((LM_DEBUG, "sleeping for %u\n", t));